home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 6 / The Arsenal Files 6 (Arsenal Computer).ISO / os2 / jvw10h.zip / JVIEW.HLP (.txt) < prev    next >
OS/2 Help File  |  1996-02-26  |  86KB  |  2,142 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. JView Introduction ΓòÉΓòÉΓòÉ
  3.  
  4. JView is an image viewing system designed specifically for the OS/2 operating 
  5. system.  It handles a variety of image formats and is designed to work with an 
  6. 8 bit or higher graphics system. Every effort has been made to provide help 
  7. on-line so that everything you need is a mouse click away. 
  8.  
  9. JView us very flexible in choosing how to view images, but he price for such 
  10. flexibility is added complexity.  Viewing images has been implemented in ways 
  11. that you may be unfamiliar with.  It is probably worth your while to look 
  12. through the section on Viewing Strategies at this time. 
  13.  
  14.  
  15. ΓòÉΓòÉΓòÉ 2. PopUp Menu ΓòÉΓòÉΓòÉ
  16.  
  17. The main menu system is accessed by single clicking the right mouse button or 
  18. by using the appropriate keyboard equivalent. You probably figured this out by 
  19. now. This help subsection is designed to mimic the layout of the Popup menu. 
  20. Follow the subheadings just as they are presented in the menu. 
  21.  
  22.  
  23. ΓòÉΓòÉΓòÉ 2.1. Files ΓòÉΓòÉΓòÉ
  24.  
  25. This menu command does nothing by itself except bring up a second popup down 
  26. menu which has commands generally relating to files, such as Slide Show, Open a 
  27. file, Save a file, etc. 
  28.  
  29.  
  30. ΓòÉΓòÉΓòÉ 2.1.1. Open File Dialog ΓòÉΓòÉΓòÉ
  31.  
  32. This dialog is one of the more useful features of JView.  The dialog runs 
  33. independently of the main display window.  You can select a new file at any 
  34. time unless JView prevents it, and generally you will only be prevented from 
  35. opening a file if JView is already trying to open a file. 
  36.  
  37. File Mask  This mask acts as a filter to determine which files are displayed in 
  38. the available Files list box.  In the Options Notebook you can decide what you 
  39. would like the default setting for this to be.  You can change the value in 
  40. this entry field at any time but the change will only be effective while the 
  41. current JView session is active.  Typically you would just enter *.* or *.bmp 
  42. here.  You can also use *.bmp;*.gif to select multiple file extensions.  If you 
  43. want you could also type in the name of a file or the full name ala 
  44. c:\file\my.bmp.  Further, you can change to a new directory fairly quickly by 
  45. using c:\files\go_here\*.* - This would change to the appropriate drive and 
  46. directory and also set the File Mask to *.*. 
  47.  
  48. General Idea  Consider this information for the GUI impaired.  A file can be 
  49. selected by typing the file name into the File Mask entry field or by double 
  50. clicking on the appropriate file in the Files list box.  Directories are 
  51. changed by double clicking in the Directory listbox, using the Quick Dir or by 
  52. using the H Dir (a feature discussed below).  Drives are changed using the pull 
  53. down Drives listbox. The file mask entry field is where, in addition to simply 
  54. typing a file name, you may enter wild cards, like *.gif or multiple wild cards 
  55. separated by a space, a ; or , for example *.gi*;*.bmp;*.tga  A list of only 
  56. those files that match the mask will be shown in the files list box.  Files can 
  57. be shown in either alphabetical or dated format by selecting the appropriate 
  58. button. In the Files list box, to the right of a given file's name will be the 
  59. file's size, inclosed by < > symbols. 
  60.  
  61. Confirm on delete does what it says.  If you try and delete a file, it will 
  62. prompt you first.  Turn it off and delete will just kill the file when you hit 
  63. the Delete button.  BEWARE!!! The file deleted is the file shown in the current 
  64. file area (at the upper left side of the dialog) not necessarily the file 
  65. currently being viewed.  If you only single click on a file in the Files list 
  66. box it will be selected as the current file even though you have not yet loaded 
  67. it. Why does this feature exist?  Often a series of images are less than 
  68. desirable, so the ability to cream'em all at once is useful.  Just leave the 
  69. Confirm on Delete attribute on if your not sure, you will always be prompted. 
  70.  
  71. Browse Mode keeps the dialog open when not in use.  This is useful if you are 
  72. going to look at a variety of files and don't want to keep opening the dialog 
  73. each time.  When Browse Mode is active, hitting Cancel has features discussed 
  74. below. When Browse Mode is off hitting Cancel will close the Open File dialog. 
  75. Most often it will be faster just to minimize the Open File Dialog if you want 
  76. it out of the way.  The penalty for using Browse Mode is that some memory is 
  77. used to store the directory information.  For most users this will be a trivial 
  78. amount of memory, but users with thousands of files in a directory can be 
  79. impacted. 
  80.  
  81. Cancel  When Browse Mode is not checked this will just dismiss the Open File 
  82. Dialog.  When Browse Mode is active, Cancel will have two possible effects.  If 
  83. an image is currently being loaded, Cancel will stop the file read and load the 
  84. default JView image.  If an image is not being loaded, Cancel will cause the 
  85. main window to rise to the top (become active). 
  86.  
  87. H File is an historical listing of all directories you have visited in the 
  88. current JView session.  If you have gone to several directories and will go 
  89. back to them, use this listbox and save yourself some keystrokes (or mouse 
  90. clicks). 
  91.  
  92. Low Priority Open will cause the selected file to be read in at low priority, 
  93. giving other processes more of the CPU.  This option gets applied even while a 
  94. file is currently being read.  Thus, you can change the priority of a file read 
  95. by toggling this switch. See the discussion about Low Priority Threads. 
  96.  
  97. Preview Mode will use the fastest method possible to read a file.  The image 
  98. will always be converted to grayscale and for certain file formats the image 
  99. may be a scaled down version of the full file. 
  100.  
  101. There are two buttons on the lower left side of the dialog box labeled N and P. 
  102. These buttons will cause the file either next or previous relative to the 
  103. currently highlighted file to be opened.  Both will cycle to either the 
  104. beginning or end of the list when going off the end.  These buttons have 
  105. accelerator keys associated with them. 
  106.  
  107. Because of OS/2's multitasking capabilities, JView will attempt to read files 
  108. that other applications are currently writing.  For most file types, JView can 
  109. handle truncated images and so there will not be a problem.  Generally speaking 
  110. a certain minimum (header info) is needed.  Usually there will not be a 
  111. problem, but you never know. 
  112.  
  113. To the right of all the obvious pushbuttons there is the I button.  This stands 
  114. for information.  After you have highlighted a file in the files listbox, you 
  115. can hit the I button to find out the file format and the resolution of the 
  116. image.  This way you can test an unknown file before loading to see if it has 
  117. some ridiculous resolution, like 10000 by 10000 which would claim 100 megs of 
  118. memory if you tried to load it.  If you have previously Iconified the file, the 
  119. icon will be displayed by hiding the Directory listbox.  Dry your little eyes, 
  120. the Directory listbox is just hiding and will come back to visit you after you 
  121. click on any file in the file listbox, except the currently selected one.  A 
  122. potential problem exists if you only have one file in the directory and you 
  123. view the icon.  The icon will display, but you won't be able to change 
  124. directories because the Directory listbox will be hidden, but you won't be able 
  125. to unhide it because you won't be able to click on a new file in the file 
  126. listbox.  Whew, that's confusing!  You can get around this by switching drives, 
  127. or using your QuickDir. 
  128.  
  129. One last item is the Quick Dir listbox.  Go back on click on Quick Dir for the 
  130. description. 
  131.  
  132.  
  133. ΓòÉΓòÉΓòÉ 2.1.2. Saving an Image ΓòÉΓòÉΓòÉ
  134.  
  135. The File Save dialog is pretty simple but deserves some explanation.  The Quick 
  136. Dir listbox needs some detailed explanation that can be accessed by clicking on 
  137. Quick Dir.  Drive, Directory, and Files are listings or displays of what is 
  138. currently available.  You can enter any valid directory/path combo in the Save 
  139. as: entry box.  The file listing is for information purposes mostly, but if you 
  140. do click on the file it will become the entry in the Save as: box. 
  141.  
  142. When you select a file type, that appropriate extension is added to or changed 
  143. for the text in the Save as: entry field. 
  144.  
  145. There are many file types available and are listed in the Formats listbox. 
  146.  
  147. Each has their own unique characteristics, but for the uninitiated GIF and 
  148. Jpegs are the most commonly used formats.  In addition to formats that are 
  149. built-into JView, you have the option of tying into the file formats that come 
  150. with Warp's BonusPak.  See Additional File Formats for details. Some of JView's 
  151. built in formats have options relating to how the image is saved.  If the 
  152. selected format has options associated with it, the Options button will become 
  153. enabled allowing you to make the appropriate choices. 
  154.  
  155. There are five options located at the bottom of the dialog.  Save at displayed 
  156. size will write the image at whatever resolution the image is currently being 
  157. displayed with.  This is contrasted with the resolution that the image is 
  158. stored in memory as.  See Viewing Strategies  for details. 
  159.  
  160. The second option is to Save at Low Priority.  Since JView is multithreaded you 
  161. can save a file and while it is being written to disk, you can go ahead 
  162. (yippy!) and start to load a different image.  Low priority will write the 
  163. current file a little slower (in theory anyway) so that you (or other 
  164. processes) can use the CPU to do more important things, like loading/looking at 
  165. another image.  (See the discussion about Low Priority Threads).  Only one 
  166. image can be saved at a time.  You can only save one file at a time.  During 
  167. the time an image is being saved the border of JView will turn red or blue 
  168. depending on whether JView is the active application.  When the save is 
  169. complete, JView will return to its default border colors.  In this way you will 
  170. know when a file save is complete.  If you try and exit JView before a save is 
  171. finished, you will get a warning message and the option of finishing the save 
  172. before termination. 
  173.  
  174. The third option is Iconify which will create an icon version of the image and 
  175. make it the icon for the file.  This way you get an image that is just big 
  176. enough for you to get an idea of what the file is like.  See the iconify 
  177. description for important details.  When iconify is selected here, you do not 
  178. get to use a selected area to indicate what area of the image becomes the icon, 
  179. the whole image is used. 
  180.  
  181. The fourth option is Selected Area, and is only available if you have selected 
  182. a region of the current image.  If you have such a selection region active and 
  183. you check this option, only the selected region will be saved. 
  184.  
  185. The fifth option is Zoomed Area and will only be available if you are currently 
  186. zoomed into your image.  By checking this option, only the zoomed section of 
  187. the image will be saved, otherwise the entire image will be saved.  Note that 
  188. if Selected Area and Zoomed Area are both available, checking Selected Area 
  189. will caused Zoomed Area to be ignored. 
  190.  
  191. Colors  The colors option will cause the image to be saved in the appropriate 
  192. number of indicated colors.  The saved imaged is affected, but the current 
  193. image will remain unchanged. 
  194.  
  195.  
  196. ΓòÉΓòÉΓòÉ 2.1.3. Printing ΓòÉΓòÉΓòÉ
  197.  
  198. The quality of the prints you create will be function of trial and error at 
  199. first. On black and white printers you may wish to convert the image to black 
  200. and white or gray before using some of the more advanced tools available. 
  201. Experiment at first so that you gain a feel for how best to manipulate your 
  202. images for optimum printing. 
  203.  
  204. Printing is fully multi-threaded so that you may immediately begin another task 
  205. after initiating a print job - even loading in a new image. 
  206.  
  207. The challenging part about printing is to do so without distorting your image 
  208. inadvertently.  This is why there is a readout (Aspect Ratio) on the top of the 
  209. print utility showing how much the image will distort if it is printed as 
  210. currently configured.  In this context distortion means the aspect ratio is not 
  211. 0.  Usually you will want to make the Aspect Ratio zero, but that's up to you. 
  212.  
  213. The Aspect Ratio readout tells you how much your image is being squished 
  214. because of the margins you have called for.  Basically, 0 means that your image 
  215. will print true, while positive values indicate the sides are squished in, a 
  216. negative value means the top is squished down. 
  217.  
  218. You select a printer by clicking on the appropriate printer name shown in the 
  219. Printers listbox.  Double clicking on the printer will allow you to edit its 
  220. defaults.  In the main Options dialog you have the option of specifying a 
  221. default printer. If none has been selected, the system default printer will 
  222. initially be selected.  If you modify the settings or change printers, those 
  223. changes will remain in force for the entire session, but are discarded after 
  224. the JView is closed. 
  225.  
  226. You have the ability to specify four distances, the left and top margins and 
  227. the width and height of the image.  Additionally, you may modify the colors 
  228. that will be used for printing.  If you choose black and white, a Floyd 
  229. Steinberg black and white dither is applied.  If you choose to go from 24 bit 
  230. to 8 bit color, the method for conversion will depend upon that which has been 
  231. chosen under the general options configuration for doing 24 to 8 bit 
  232. quantization. 
  233.  
  234. Several options are available.  Landscape will cause the paper to be rotated 90 
  235. degrees, so instead of your paper being 8.5 by 11 inches, it would be treated 
  236. as 11 by 8.5 inches. 
  237.  
  238. Invert BW will swap the colors black and white in a black and white image.  The 
  239. reason for doing so is often people use a black background when creating an 
  240. image, but printing almost always takes place onto a white paper. 
  241.  
  242. Postscript options allow you to bypass the OS/2 print system and directly 
  243. create an encapsulated postscript file.  The indicated filename will be used. 
  244. Raw postscript cannot be viewed by most applications.  Preview places a 
  245. viewable version of the image into the EPS file, so that another application 
  246. can show the user what the EPS will look like.  Compress will compress the EPS 
  247. file to minimize the size of the file. 
  248.  
  249.  
  250. ΓòÉΓòÉΓòÉ 2.1.4. Image Information ΓòÉΓòÉΓòÉ
  251.  
  252. This command brings up a window that shows information about the currently 
  253. displayed image.  The information consists of: 
  254.  
  255.    o  The Filename 
  256.    o  Format of the image file and filesize 
  257.    o  Resolution of the image in memory 
  258.    o  Resolution of the image as displayed 
  259.    o  Color information 
  260.    o  An box that occasionally will show warning messages, you can use the 
  261.       arrow keys if the information isn't all displayed 
  262.    o  A history list box of manipulations that have been performed on the 
  263.       current image. 
  264.  
  265.  The Information Box will remain visible until JView is exited or until the 
  266.  Hide button is pressed. 
  267.  
  268.  The information categories are pretty self explanatory, but for clarity 
  269.  Resolution refers to the resolution of the image as it is currently stored in 
  270.  memory, while Display Res. is the resolution at which the image is currently 
  271.  being displayed. 
  272.  
  273.  
  274. ΓòÉΓòÉΓòÉ 2.1.5. SlideShow ΓòÉΓòÉΓòÉ
  275.  
  276. Slide Show is used to display a series of chosen images; either a new image is 
  277. displayed after a certain amount of time or after a certain signal is given 
  278. (manual mode).  There are three ways to start a slide show.  One is to use the 
  279. Slide Show option.  Two is to drag a JView slide show file onto JView or to 
  280. open such a file with the Open File dialog.  Three is to drag and drop multiple 
  281. files onto JView. 
  282.  
  283. The Drive listbox changes the current drive. 
  284.  
  285. Quick Dir is explained elsewhere. 
  286.  
  287. Directory is a listbox of the current directory.  Selecting an item in this 
  288. listbox will cause a change to that directory. 
  289.  
  290. Note:  Selecting the current directory will deselect all the files highlighted 
  291. in the Files listbox. 
  292.  
  293. The basic idea is to select a file that you want included in the display. You 
  294. can select a specific file by clicking on it in the File list box or  you may 
  295. select multiple files at one time.  A file is selected when it is highlighted. 
  296.  
  297. Note:  If you double click on a file, it is immediately selected into the 
  298. Selected Files listbox. 
  299.  
  300. If you have mistakenly highlighted a file, clicking on it again will 
  301. de-highlight it.  In addition to going after individual files in the Files 
  302. listbox, you may use any or all of the four buttons located below it.  *.gif 
  303. will highlight all files that have the .gif extension.  Similarly for *.jpg 
  304. while *.* selects everything.  The Mask-> button will take whatever you have 
  305. entered in the entryfield to its right and use it for finding files.  You DO 
  306. NOT use wild card symbols here (*, ?). 
  307.  
  308. Example:  Using .gif as the mask would highlight all files that have .gif in 
  309. them.  This would include 
  310. JView.gif 
  311. myfile.old.gif 
  312. 1.gif.jpg 
  313. Using t as the mask would select any file with a "t" in it. 
  314.  
  315. Once you have highlighted a file, hitting the Add-> button will select it into 
  316. the Selected Files listbox. The files listed there are the ones that will be 
  317. used in the actual slide show. 
  318.  
  319. If you have decided that you don't want to include a file that is listed in the 
  320. Selected Files listbox, highlight it and use the <-Remove button to eliminate 
  321. it. 
  322.  
  323. Note:  You can select multiple copies of the same file into the Selected Files 
  324. listbox. 
  325.  
  326. The Start button will begin the slide show. 
  327.  
  328. Two additional functions are Save and Load.  These are for storing and 
  329. retrieving a SlideShow file selection.  When a Slide Show file is saved, all 
  330. the files listed and the current Slide Show options are stored.  The default 
  331. extension for the file created is .sls but any file name can be used.  When 
  332. loading a file, all entries are placed into the selected listbox, including any 
  333. that are already listed.  The Slide Show options are updated to those that were 
  334. in the file, if any existed.  You can also start a Slide Show by selecting a 
  335. Slide Show file from the File Open Dialog or by dragging and dropping such a 
  336. file onto the JView icon or dragging and dropping multiple files onto JView. 
  337.  
  338. Be aware that you can modify your selected options even when SlideShow is 
  339. running by selecting Options off the Main PopUp Menu. 
  340.  
  341. Note:  When JView is minimized the SlideShow will pause after the next image 
  342. has been read in. 
  343.  
  344. You can skip ahead to the next image in Timed mode by double clicking with the 
  345. left mouse button or hitting the N key. 
  346.  
  347.  
  348. ΓòÉΓòÉΓòÉ 2.1.5.1. SlideShow Options ΓòÉΓòÉΓòÉ
  349.  
  350. Advancing to the next image can be caused by either a time trigger or by a 
  351. manual trigger.  The Time interval between images entered in the appropriate 
  352. entryfield, but this field is ignored if you select manual mode.  The actual 
  353. time interval is calculated from the time the most recent image is displayed 
  354. until the next image will start to be read.  Because of time it takes to read 
  355. an image, the actual interval between image displays may be quite different 
  356. than that requested. 
  357.  
  358. There are five different ways of having the image displayed.  The first three 
  359. are grouped together because they can additionally be forced not to change 
  360. their window size.  The fixed window size option does not affect the other two 
  361. options.  Keep True Aspect Ratio, Aspect Ratio can Distort, and Use Scroll Bars 
  362. will resize the display window up to the size of the screen with each new file 
  363. load unless Fixed Window Size is specified. Keep True Aspect Ratio will always 
  364. display the image in its correct height vs width ratio.  If Fixed Window Size 
  365. is selected, the image may be padded with black space on the sides or top and 
  366. bottom as needed. Aspect Ratio can Distort will resize the window to the 
  367. correct size if Fixed Window Size if NOT selected.  Any subsequent resizes of 
  368. the current image will force the image to fit inside the window.  If Fixed 
  369. Window Size is selected, the image will always fit exactly into the window. Use 
  370. Scroll Bars will use scroll bars to control the display of the image when it is 
  371. too large for the display window. 
  372.  
  373. The alternative two display options are size limited.  Auto Resize with 
  374. Constant Width will always keep the image at the current width of the window, 
  375. small images will expand appropriately while large ones will shrink.  The upper 
  376. left corner of the window is considered fixed, while the base is allowed to 
  377. float.  In this way the window will resize (as far down as the bottom of the 
  378. screen) to keep the aspect ratio correct. If the correct aspect ratio cannot be 
  379. achieved because the image would be too large, the image width will be padded. 
  380. Auto Resize with Constant Height is similar except the height of the window 
  381. will not change.  Again, the upper left corner is considered fixed and will not 
  382. be moved by JView.  The window will expand to the far right side of the screen 
  383. if needed. 
  384.  
  385. The Loop option will cause the slide show to begin over again once all the 
  386. images have been cycled through. 
  387.  
  388. Randomize files will cause the slide show images to appear in a random order, 
  389. otherwise they appear in the order listed in the Selected Files listbox shown 
  390. in the SlideShow dialog. 
  391.  
  392. You can also specify whether you want the Slide Show to run at low priority. 
  393. This way your other applications will not be as affected during a file read. 
  394. See the discussion about Low Priority Threads. 
  395.  
  396. Finally, you can specify that images will only use the default System Colors. 
  397. The advantage of doing this are two fold.  First, if you machine is only 
  398. capable of displaying 256 colors or less, this will keep JView from 
  399. manipulating the palette and possible disturbing the displays of other 
  400. applications.  Secondly, using the system palette will force all images to be 
  401. stored at an 8 bit color depth.  This can reduce the amount of memory required 
  402. to hold an image by up to a factor of three. 
  403.  
  404. While not an option that can be specified here you do have the ability to use 
  405. the Float function once the Slide Show has started.  Access the command by 
  406. using the right mouse button. 
  407.  
  408. Any of these options can be changed while the SlideShow is running.  Use the 
  409. right mouse button to bring up the appropriate menu. 
  410.  
  411.  
  412. ΓòÉΓòÉΓòÉ 2.1.6. Batch Conversion ΓòÉΓòÉΓòÉ
  413.  
  414. This feature allows you to convert a series of files from their current format 
  415. style to a new type.  The operation of the dialog is virtually identical to the 
  416. SlideShow Dialog so you should first familiarize yourself with its operation 
  417. before proceeding. 
  418.  
  419. The differences between the operation of the SlideShow Dialog and the Batch 
  420. Conversion Dialog are found in the Options.  When Options is pushed, a new 
  421. dialog is presented and this is where all the significant information is 
  422. entered. 
  423.  
  424. One other change with the Batch Conversion is the Close When Done checkbox 
  425. located near the Help button.  Unlike the SlideShow which exits after the show 
  426. has completed, the Batch Conversion will return to the dialog so that another 
  427. round of conversion can be commenced.  This checkbox allows you to specify 
  428. whether or not the conversion will be a onetime event. 
  429.  
  430.  
  431. ΓòÉΓòÉΓòÉ 2.1.6.1. Batch Conversion Options ΓòÉΓòÉΓòÉ
  432.  
  433. The layout and functionality of this dialog is somewhat similar to the File 
  434. Save Dialog.  Since batch conversions are a more advanced feature than saving a 
  435. single file, it is assumed that you are familiar with the methods involved in 
  436. saving a single file. 
  437.  
  438. The options unique to batch conversions deal with what should be done with the 
  439. files in question. 
  440.  
  441. Delete source file will cause the file that is being read from to be deleted if 
  442. the conversion is successful.  Obviously, this should not be used on critical 
  443. files.  It is safer to do your conversion, verify that the conversion was 
  444. successful and then delete the original files. 
  445.  
  446. Warn on overwrite and Overwrite target are mutually exclusive options.  With 
  447. Warn on overwrite selected, if a file exists with the same name as a file that 
  448. you are trying to create with the conversion, you will be prompted about 
  449. whether to overwrite the file.  This will prevent you from inadvertently losing 
  450. a file.  Selecting Overwrite means that you know what you are doing and any 
  451. file that already exists will be overwritten without protest. 
  452.  
  453. The Options button functions exactly the same as with the File Save Dialog, it 
  454. refers to specific options associated with the specified file format. 
  455.  
  456.  
  457. ΓòÉΓòÉΓòÉ 2.1.7. Iconify & UnIconify ΓòÉΓòÉΓòÉ
  458.  
  459. This little puppy allows you to associate a miniature version of your image or 
  460. part of your image with the image file.  The icon is placed in the extended 
  461. attributes of the file and (depending on the resolution you have set, See 
  462. Options) adds about 5K to the file length.  When you open the drives 
  463. application, all the images that you have iconified will have little itsy-bitsy 
  464. versions of themselves displayed.  You decide the resolution for the icon. (As 
  465. far as the drives application goes, the resolution that the icon will be 
  466. displayed at is a function of your screen resolution.  For instance, if you use 
  467. a 640 by 480 screen, icons are displayed at 32 by 32 pixels, while 1024x768 
  468. screens get icons of 40 by 40.) 
  469.  
  470. The icon information is also displayed when you use the "I" key on the open 
  471. file dialog.  This will expand the icon to display at 100 by 100 pixels. 
  472.  
  473. Normally the entire image is used to make the icon, but if a region has been 
  474. selected only that part of the image will be used. 
  475.  
  476. UnIconify will delete the icon information from the image file. 
  477.  
  478.  
  479. ΓòÉΓòÉΓòÉ <hidden> Default Image ΓòÉΓòÉΓòÉ
  480.  
  481. This command will cause JView to clear whatever image is currently in memory 
  482. and load JView's default image instead.  This is useful when you don't wish to 
  483. exit JView, but at the same time don't want to tie up the memory and screen 
  484. space associated with a large image. 
  485.  
  486.  
  487. ΓòÉΓòÉΓòÉ <hidden> Quit ΓòÉΓòÉΓòÉ
  488.  
  489. What the heck are you thinking!  Quit - it quits the bleedin' program. 
  490.  
  491.  
  492. ΓòÉΓòÉΓòÉ 2.2. Edit ΓòÉΓòÉΓòÉ
  493.  
  494. The commands listed under this heading are used to cause changes or 
  495. manipulations to the current image. 
  496.  
  497.  
  498. ΓòÉΓòÉΓòÉ 2.2.1. Resize ΓòÉΓòÉΓòÉ
  499.  
  500. Resizing is fairly self explanatory.  If you select one of the screen sizes, 
  501. the image will be either scaled up or down to exactly fill that screen size 
  502. without distortion (the image will not be padded, rather one dimension will fit 
  503. while the other will fit exactly or be left too small). 
  504.  
  505. If you choose not to use a screen size, you can specify any Custom size. If you 
  506. check Keep aspect ratio true, amazingly enough the aspect ratio will remain 
  507. constant. 
  508.  
  509. You have two choices for the method used to resize.  If you select Bilinear 
  510. Blending, approximations to a given pixel will be calculated by creation of a 
  511. grid mapping the old pixels to the new.  The effect is that the pixelization 
  512. effect that occurs when images are scaled up by large factors will not occur. 
  513. The image will become slightly blurry though.  It is also a time consuming 
  514. method.  If Bilinear Blending is not selected, then a much quicker method is 
  515. used. 
  516.  
  517. If you are running Bilinear Blending you will have the chance to abort the 
  518. process by hitting the Cancel button. 
  519.  
  520.  
  521. ΓòÉΓòÉΓòÉ 2.2.2. Copy and Paste ΓòÉΓòÉΓòÉ
  522.  
  523. The pathway to the copy and paste commands. 
  524.  
  525.  
  526. ΓòÉΓòÉΓòÉ 2.2.2.1. Copy... ΓòÉΓòÉΓòÉ
  527.  
  528. Copy to the clipboard.  The image will be copied to the system's clipboard.  If 
  529. your image is 8 bit, you will be asked whether you also want to copy the 
  530. image's palette. Some applications don't look for a palette and so the image 
  531. will get a distorted colormap if you tell JView to include the palette.  If you 
  532. don't copy in a palette, JView will convert the image to the system colors. 
  533. This is only a concern if your system is running in 256 color (8 bit) video 
  534. mode. 
  535.  
  536. If a cropping region is present, only the image inside the cropping region and 
  537. under the cropping lines gets copied.  If the region isn't rectangular, the 
  538. areas outside the region up to an enclosing rectangle will be padded with the 
  539. color specified under the Options notebook. 
  540.  
  541.  
  542. ΓòÉΓòÉΓòÉ 2.2.2.2. Copy Special ΓòÉΓòÉΓòÉ
  543.  
  544. Copy to the clipboard using JView's own special format. If you are planning on 
  545. doing cut and paste between JView applications then use this method instead of 
  546. regular copy.  All colors and crop regions are preserved. 
  547.  
  548.  
  549. ΓòÉΓòÉΓòÉ 2.2.2.3. Paste ΓòÉΓòÉΓòÉ
  550.  
  551. Paste from the clipboard.  Whatever image JView is currently displaying will be 
  552. lost. 
  553.  
  554.  
  555. ΓòÉΓòÉΓòÉ 2.2.3. Set Color Type ΓòÉΓòÉΓòÉ
  556.  
  557. Just like an image can be stored in a variety of file formats, it can also be 
  558. stored in a variety of colorspaces.  This command specification tells JView how 
  559. you want an image to be treated. 
  560.  
  561. Specifying Grayscale will force the image to be made up of 256 distinct shades 
  562. of gray.  Because the colors are limited to shades of gray, each pixel will 
  563. take-up only 1 byte of memory and yet still be able to address all possible 
  564. grayscale colors. 
  565.  
  566. Palette also limits the image to a maximum of 256 unique colors.  Unlike 
  567. grayscale, these colors can be any color, not just shades of gray.  This means 
  568. that the colors are by definition a subset of all colors available.  Thus, the 
  569. image is limited in the quality of the image.  The advantage to using a palette 
  570. is that (like grayscale) each pixel only takes 1 byte of memory. 
  571.  
  572. RGB allows the image to contain any available color, up to 16 million different 
  573. ones.  The price for this is that each pixel now takes 3 bytes of memory to 
  574. store - three times as much space as either Grayscale or Palette.  This is the 
  575. reason for using Grayscale if you know that your image doesn't need to have 
  576. color. 
  577.  
  578. This setting isn't of particular use except when using editing functions 
  579. available outside the JView base product. 
  580.  
  581.  
  582. ΓòÉΓòÉΓòÉ 2.2.4. Cropping ΓòÉΓòÉΓòÉ
  583.  
  584. Commands related to cropping the image. 
  585.  
  586.  
  587. ΓòÉΓòÉΓòÉ 2.2.4.1. Simple Crop ΓòÉΓòÉΓòÉ
  588.  
  589. Crop will delete all the areas that are outside the currently selected region. 
  590. You can use any crop (selection) style that you like, not just rectangles.  If 
  591. you are using a crop method besides rectangles, blank areas of the image will 
  592. be filled in with the default background color specified in Options. 
  593.  
  594.  
  595. ΓòÉΓòÉΓòÉ 2.2.4.2. Auto Crop ΓòÉΓòÉΓòÉ
  596.  
  597. In the options dialog you can specify a default crop value or tolerance.  This 
  598. value is used by Auto Crop to do its cropping.  The theory of auto cropping is 
  599. that you have an image with borders on it that you wish removed.  If the 
  600. borders are a single color that is different than the colors used in your 
  601. image, they can be easily detected and deleted.  What Auto Crop is looking for 
  602. is an obvious transition point or gradient in your image. The cropping value 
  603. mentioned above comes into play because the borders may not be uniform in 
  604. color.  See Custom Crop for an explanation of the value mentioned above. 
  605.  
  606. Remember you can always Undo it if doesn't meet your expectations. 
  607.  
  608.  
  609. ΓòÉΓòÉΓòÉ 2.2.4.3. Custom Crop ΓòÉΓòÉΓòÉ
  610.  
  611. Custom Crop performs the same function as Auto Cropping mentioned in the 
  612. previous section, except is does it in a more controlled setting.  Unlike Auto 
  613. Crop, you can specify the tolerance value and also iteratively undo the 
  614. results. 
  615.  
  616. The tolerance value works based on the premise that if a given row or column of 
  617. your image is mostly one color, then it is probably a border and should be 
  618. deleted. What is mostly?  That is where the tolerance comes in.  The tolerance 
  619. is a percentage of the pixels in question being uniform in color.  For 
  620. instance, if you have a tolerance value of 100, then you are saying that all 
  621. the pixels in question must be the same color. A value of 95 means that up to 
  622. 5% of the pixels can be different from one another but at least 95% need to be 
  623. the same color.  If the pixels vary too much then the line is ignored. 
  624.  
  625.  
  626. ΓòÉΓòÉΓòÉ 2.2.5. Flip ΓòÉΓòÉΓòÉ
  627.  
  628. Depending on the option selected, the current image is flipped (mirrored) 
  629. either vertically or horizontally. 
  630.  
  631.  
  632. ΓòÉΓòÉΓòÉ 2.2.6. Rotate ΓòÉΓòÉΓòÉ
  633.  
  634. Rotation of the image is either clockwise or counterclockwise.  Rotation takes 
  635. place in 90 degree increments. To undo a rotation simply pick up your monitor 
  636. and rotate it 90 degrees in the opposite direction. 
  637.  
  638.  
  639. ΓòÉΓòÉΓòÉ 2.2.7. Undo ΓòÉΓòÉΓòÉ
  640.  
  641. Undo allows you to reverse the changes that have been performed on the image. 
  642. Undo works on a circular list principle.  Thus, as you repeatedly hit undo you 
  643. travel backwards along the list until you run out of levels of undo.  At this 
  644. point you are transferred back to the beginning of the list.  The net effect of 
  645. this is that you can Undo your Undo. 
  646.  
  647.  
  648. ΓòÉΓòÉΓòÉ 2.3. Selections ΓòÉΓòÉΓòÉ
  649.  
  650. This command brings up two menus, all related to the creation and use of 
  651. selection (crop) regions.  First off, what is a selection region? A selection 
  652. region is a path that outlines part of the image.  It is always a closed path. 
  653. A path is initiated by pressing the left mouse button at the point on the image 
  654. where the path is to begin. 
  655.  
  656. There are several different Methods that can be used to create a path.  The 
  657. first is Rectangle.  This method allows the user to specify a rectangular (or 
  658. square) path.  Once the path has been created, it can be adjusted by dragging 
  659. on of the control points (the black and white squares along the perimeter) or 
  660. it can be translated by dragging the center point. 
  661.  
  662. The next Method is Ellipse.  This function exactly the same as Rectangle, 
  663. except the outline is elliptical. 
  664.  
  665. Next is Freehand.  Freehand allows the user to specify any continuous path they 
  666. desire.  This method requires the use of both the left and right mouse buttons. 
  667. The user begins the path by pressing the left mouse button and keeping it 
  668. depressed during the entire path creation.  The user then move the mouse 
  669. pointer to the next point along the desired path.  At that time, they depress 
  670. the right mouse button to add that point to the path.  Optionally, the user 
  671. could keep both the right and left buttons depressed to draw a path that 
  672. follows the movements of the mouse exactly.  If the user decides that a point 
  673. is draw incorrectly, they may hit the escape key to remove the most recently 
  674. added point. 
  675.  
  676. Finally, the Magic method is available.  Magic automatically determines the 
  677. area of interest.  With Magic you only select a starting point, you do not 
  678. manually outline the area of interest.  The best way to imagine this is white 
  679. region on a black background.  If you were to select a point in the white 
  680. region, Magic would explore the region until if detected the transition to 
  681. black.  This boundary would become the selection region.  Because not all 
  682. images will be black and white, a tolerance level is used.  This tolerance is 
  683. specified using Set Magic.  Thus, instead of looking for black/white 
  684. transitions, a high tolerance would detect a subtler gradient. 
  685.  
  686. You also have the option of turning selection completely off.  This is 
  687. accomplished by choosing None. 
  688.  
  689. There are several Options available.  Set Magic was explained in a previous 
  690. paragraph.  Turn Off simply turns off the currently selected region. This is 
  691. not the same as setting the selection method to None.  The type of selection 
  692. method does not change by turning the selection off. 
  693.  
  694. The final option is Storage of a selection path.  This allows you to define 
  695. multiple paths and switch between them.  Do be aware that these paths will 
  696. remain even when a new image is loaded.  This allows the user to define a path 
  697. on one image and then to use it on another - but great care must be taken when 
  698. these images are of different sizes. 
  699.  
  700.  
  701. ΓòÉΓòÉΓòÉ 2.4. Magnify ΓòÉΓòÉΓòÉ
  702.  
  703. This specification is only valid when the display method is to Use Sliders. 
  704. Magnify simply expands or shrinks the image by the factor indicated.  This is 
  705. for display purposes only, the actual image in memory is unaffected.  This is 
  706. different than Zooming, because the entire image is affected. 
  707.  
  708.  
  709. ΓòÉΓòÉΓòÉ 2.5. Zoom ΓòÉΓòÉΓòÉ
  710.  
  711. Zooming in involves selection a region of interest.  This region is then 
  712. isolated (for display purposes) from the rest of the image.  Zoom and Magnify 
  713. can be used in conjunction.  Some care must be taken when performing operations 
  714. on a Palette style image.  With a palette style image, changes made to the 
  715. color scheme of the zoom region will affect the entire image, even though this 
  716. may not be evident at the time of the operation.  Zoom Out undoes the zoom in. 
  717.  
  718.  
  719. ΓòÉΓòÉΓòÉ 2.6. Miscellaneous ΓòÉΓòÉΓòÉ
  720.  
  721. Generally commands in this group are used infrequently and/or deal more with 
  722. presentation issues than specific images. 
  723.  
  724.  
  725. ΓòÉΓòÉΓòÉ 2.6.1. Options ΓòÉΓòÉΓòÉ
  726.  
  727. For the main Options Notebook you check or fill in the various selections as 
  728. you see fit and then select the action you would like with one of the four 
  729. buttons on the bottom of the notebook.  Those buttons are: 
  730.  
  731.    o  Apply (Options become active, but are not saved) 
  732.    o  Save (Options saved but not applied) 
  733.    o  Cancel 
  734.    o  Help 
  735.  
  736.  
  737. ΓòÉΓòÉΓòÉ 2.6.1.1. Cropping ΓòÉΓòÉΓòÉ
  738.  
  739. These choices relate to the creation of cropping regions/paths and 
  740. auto-cropping. 
  741.  
  742. Auto cropping is a method of having the computer decide when boundary areas 
  743. should be cropped.  The value here is the default value for use when 
  744. auto-cropping. 
  745.  
  746. Background color refers to the color that will be used as fill when a 
  747. non-rectangular crop if performed.  The values entered represent the color in 
  748. RGB space where each value of red, green, and blue varies between 0 and 255 
  749. with all 0 being black and all 255 being white.  Double-click on the colorwell 
  750. to edit the Background Color. 
  751.  
  752.  
  753. ΓòÉΓòÉΓòÉ 2.6.1.2. Directories Option ΓòÉΓòÉΓòÉ
  754.  
  755. If you usually like to save your images in the same directory, specify a drive 
  756. and directory here.  Each time you save a file, this directory will be the 
  757. default.  Leave blank to have this ignored.  The entry must be in the form of 
  758. drive and directory (c:\images). 
  759.  
  760. Where would you like to start looking for images on startup?  Leave blank to 
  761. start in current directory.  The entry must be in the form of drive and 
  762. directory (c:\images). 
  763.  
  764. For a detailed description of what Quick Directories do see Quick Dir.  To Add 
  765. a directory, hit the Add button.  To delete an entry, select the directory you 
  766. want to remove and hit the del button to remove that selection. 
  767.  
  768.  
  769. ΓòÉΓòÉΓòÉ 2.6.2. Display Options (Window Sizing) ΓòÉΓòÉΓòÉ
  770.  
  771. These are options which apply to how the images are displayed. 
  772.  
  773. Images can be shown so that the window is scaled to reflect the size of the 
  774. image each time it is loaded - this would mean making Fixed Window Size 
  775. unchecked.  With Fixed Window Size on, the window will not resize when a new 
  776. image is loaded. 
  777.  
  778. Scale, keep true perspective means the width to height ratio remains constant. 
  779. The image gets padded with black if the image will not correctly fit into the 
  780. display window.  With Scale perspective can change  you can stretch the image 
  781. to fit the window. 
  782.  
  783. Use Scroll Bars allows the use of scroll bars.  This is used in combination 
  784. with a zoom factor.  No scaling of the image takes place (other than the 
  785. specified zoom), the scroll bars are used if the image is larger than the 
  786. available window size.  This is the method most applications (such as a word 
  787. processor) use when the amount of information to be displayed is larger than 
  788. the available screen space. 
  789.  
  790.  
  791. ΓòÉΓòÉΓòÉ 2.6.3. Icon ΓòÉΓòÉΓòÉ
  792.  
  793. When you choose to iconfiy a file, the resolution you indicate here is used. 
  794. Higher resolution will yield better looking results but will use more storage 
  795. space.  To get an idea of how much space the icon information is using, do a 
  796. directory listing of the file in question and look at the size of the extended 
  797. attributes.  The majority of the extended attributes size will be due to the 
  798. icon.  The numbers you choose here refer to the resolution of the icon. 
  799.  
  800.  
  801. ΓòÉΓòÉΓòÉ 2.6.4. Memory Options ΓòÉΓòÉΓòÉ
  802.  
  803. The purpose of the Memory Warning Size is to keep OS/2 from killing your hard 
  804. drive.  Image files are unique in that they can represent a large amount of 
  805. information in a very small file by using compression techniques.  When you try 
  806. and read a file that calls for a display resolution of 10,000 by 10,000 in 24 
  807. bit mode, then JView will need approximately 300 megabytes of memory to display 
  808. it.  OS/2 will try and allocate that memory by use of virtual memory and will 
  809. most likely crash your system and possibly take out a few files in the process 
  810. (this is less a problem under Warp than older versions of OS/2).  To prevent 
  811. this, this option checks requests for memory against a limit that you specify 
  812. here.  If the request is larger than the limit, you have the choice of aborting 
  813. the operation or continuing on.  Generally you want a size consistent with the 
  814. amount of physical RAM memory on your machine.  Thus, if you have 32 megabytes 
  815. of RAM, a Warning Size of 20 megabytes is reasonable.  If you only have 8 
  816. megabytes of RAM, a warning at 5 megabytes is prudent. 
  817.  
  818. Memory Check is two parts, a memory size field and a drive entry field. The 
  819. drive field should contain the drive (letter) that you currently have your 
  820. swapper.dat file residing.  (If you don't know you can look in your Config.sys 
  821. file for SWAPPATH=, it is usually your primary hard drive, C).  The memory size 
  822. is in bytes, and the default is 5,000,000 (5 Megabytes).  Change the value 
  823. depending on your system configuration. The value entered here will be the 
  824. maximum size of memory to be requested before the warning message is shown. 
  825.  
  826. Low Memory is fairly esoteric and involves ways images are displayed.  It 
  827. should be set ON unless you experience problems when displaying images. 
  828.  
  829.  
  830. ΓòÉΓòÉΓòÉ 2.6.5. Misc Options ΓòÉΓòÉΓòÉ
  831.  
  832. Check for OS/2 Image Readers on Startup  See the Optimizations Section for an 
  833. explanation of this function. 
  834.  
  835. Show Image Info on Startup  Will show the image information dialog upon 
  836. startup.  See Image Infomation. 
  837.  
  838. Show Load Progress shows the current status of file loading, basically a 
  839. percentage of image loaded.  Shown in the window title bar.  Some File formats 
  840. may not show this.  When dithering (quantizing) takes place, messages to that 
  841. affect will be displayed in the Title Bar. 
  842.  
  843. Empty Clipboard Upon Exit When JView puts images into the clipboard (either 
  844. regular or special) they take up a lot of memory.  These images will remain in 
  845. the clipboard until some application removes them or OS/2 is shutdown.  This 
  846. option will empty the clipboard whenever JView is exited. 
  847.  
  848. File Has Changed Warning Enabling this option will cause you to be notified 
  849. when you are about to cause all changes made to an image to be lost.  This 
  850. would happen if you resized the image and then tried to exit JView without 
  851. saving the file first or tried to load in a new image. 
  852.  
  853. Load Optional Dlls on Startup  See the Optimizations Section for an explanation 
  854. of this function. 
  855.  
  856. No Title Bar On Startup will, surprisingly, either turn on or off the titlebar 
  857. when JView first starts up. 
  858.  
  859. Serendipity This is a compatibility feature that causes JView to take on a 
  860. style of appearance that was found in its predecessor, JoeView.  It affects 
  861. aesthetics only and offers no performance gain or penalty. 
  862.  
  863. Alt + Space Bar to Minimize  The combination of the Alt key + space bar can be 
  864. used as a hot key to minimize JView - a panic key combination if you will. 
  865. This might be undesireable to some, so this can be turned on or off.  This hot 
  866. key combination works with virtually all dialogs and when activated minimizes 
  867. all windows associated with JView. 
  868.  
  869. Bugs are a term used in the software industry to describe a type of 
  870. electrobio-organism that is found in the silicon chips that are present in many 
  871. of the components of your computer system.  These creatures, referred to in the 
  872. trade as tribbles, exist at the electron level and so can't be seen by the 
  873. human eye.  They subsist on the silica on which all electronic chips are made 
  874. and use the cycling of your computer system (turning on and off your computer) 
  875. to drive their reproductive cycles (when your computer is off they are 
  876. "hibernating" and when it is on they go into a reproductive mode - their 
  877. "spring" if you will).  It is for this reason that many professional computer 
  878. users leave their machines on all the time, without the cycling the tribbles 
  879. won't reproduce and so the amount of bugs is reduced.  As you know, bugs can 
  880. cause a program to crash ; they do so by interfering with the electrons flowing 
  881. through the circuits of your computer.  A misdirected electron can collide with 
  882. another electron, which hits another and soon a cascade effect results wherein 
  883. your computer loses its ability to regulate the matter - antimatter flows and 
  884. so must abort in order to prevent damage.  The Bugs parameter here is an 
  885. indication of the amount of tribbles you believe are present in your system. 
  886. The Intel 486 line almost always has around 4000, and so the value of 4 should 
  887. be entered.  The higher performance processors, like the Pentium (Tm Intel), 
  888. contain many more transistors and so have correspondingly higher amounts of 
  889. bugs - 8000 is a good guess and so a value of 8 should be used.  JView uses 
  890. this information to try and anticipate the cascading affect mentioned above - 
  891. if the cascade is caught early enough it can be diffused by briefly going to 
  892. impulse power.  The details of the techniques used are presented in fascinating 
  893. detail in two seminal sources : 
  894.  
  895. Kirk, J. T. and Spock, M. The Trouble With Tribbles, Federation Press, S.D. 
  896. 1098274-5. 
  897.  
  898. and (the following paper is in Gaelic, at the time of this help file's writing 
  899. no English translations were available) 
  900.  
  901. McCoy, Dr. L., "Damma, Imadoc Tornota Programmer", Proceedings from Romulan 
  902. Acad. Conf., vol. 284, pp. 345-346, 2195. 
  903.  
  904.  
  905. ΓòÉΓòÉΓòÉ 2.6.6. Open Options ΓòÉΓòÉΓòÉ
  906.  
  907. The majority of these settings are described in Open Dialog. 
  908.  
  909. The major option not covered there is the File Mask. This is the value that 
  910. will be loaded into the File Open Dialog File Mask upon startup.  Wild cards 
  911. are valid and you can separate groups by either a space or a ;, for example 
  912. *.bmp;*.gif;*.jpg or *.bmp *.gif *.jpg are both valid. There is a slight speed 
  913. penalty for each additional group. 
  914.  
  915.  
  916. ΓòÉΓòÉΓòÉ 2.6.7. Palette Options ΓòÉΓòÉΓòÉ
  917.  
  918. Three possible options are available regarding palettes. 
  919.  
  920. First you can Overide System Colors  This allows JView to cream the system 
  921. colors when you are running in 8 bit (maximum of 256 colors) mode. These are 
  922. the colors used for dialogs, menu text, etc.  There are not that many of them, 
  923. roughly 20. The colors that the application can't place are mapped into the 
  924. closest ones the system will display. Usually the increase in image quality is 
  925. insignificant, but you might use this option if you are not going to look at 
  926. other applications while JView is running. 
  927.  
  928. Next comes Aggressive on Palette.  JView loves to fight for the colors it is 
  929. using.  If another application starts changing the palette this option will 
  930. cause JView to try and change the colors back every now and then.  If you are 
  931. working with another application it can get annoying having the colors flash 
  932. and the system will slow down somewhat.  This choice is relevant only if your 
  933. system is operating in 8 bit mode. 
  934.  
  935. You can use a hot key to cycle this on or off.  When you do so JView will beep 
  936. a high tone when you turn it on, a low tone when it is off. 
  937.  
  938. Even if Aggresive on Palette is off, whenever you make JView the active 
  939. application the palette will reset to the correct colors. 
  940.  
  941. The above two options only affect how the image is displayed.  The actual 
  942. colors that make up the image in memory are not affected by these choices. 
  943. Display Using System Palette actually changes the colors that make up the 
  944. image.  The option will cause the image that is loaded to be displayed using 
  945. only the colors that the system has in its default palette.  The method used to 
  946. convert to the system colors is a Floyd Steinberg error diffusion which yields 
  947. pretty good quality and has the advantage in that JView will not affect other 
  948. applications by resetting their palettes.  Also, multiple versions of JView can 
  949. be run and each one will not interfere with the others.  Since this will 
  950. actually change the colors of the image (not just the displayed colors) don't 
  951. use this to read and then save files if you want a true conversion.  As with 
  952. the above options, this option should only be used if your system is running in 
  953. 8 bit mode. 
  954.  
  955. You also have the option of choosing the maximum number of colors and image can 
  956. have. The choices are 256 (8 bit)  and 16.7 million (24 bit).  This is really a 
  957. function of what your video system is capable of handling. 
  958.  
  959. The Gamma of your display system is a way of expressing how bright colors are 
  960. displayed on your system relative to other systems. For instance, most PCs have 
  961. an overall value of 2.2 (which is your default value) while many Macintosh (Tm 
  962. Apple) systems have a value close to 1.0, in fact they can even change their 
  963. gamma for display purposes.  So a problem can arise where an image that 
  964. displays fine on a Mac will seem muted on a PC.  To counter this problem some 
  965. file formats allow a gamma specification to be included so that the system will 
  966. know the image's intended gamma display value.  With such formats the gamma 
  967. value entered here is used to adjust the image. 
  968. *------------------------------------------------------- 
  969.  
  970.  
  971. ΓòÉΓòÉΓòÉ 2.6.8. PhotoCD Options ΓòÉΓòÉΓòÉ
  972.  
  973. If you have installed the library Dlls to read the Kodak PhotoCD file format, 
  974. you will find that various resolutions are supported.  Use the correct option 
  975. here to specify which resolution you wish the file to be loaded as. 
  976.  
  977.  
  978. ΓòÉΓòÉΓòÉ 2.6.9. Printer ΓòÉΓòÉΓòÉ
  979.  
  980. Choose the printer you wish to use as the default by double clicking on the 
  981. appropriate printer. 
  982.  
  983. As was discussed in the Options section regarding displays, all output devices 
  984. have a gamma associated with them.  Here you can specify the default gamma to 
  985. be used when printing an image. 
  986.  
  987.  
  988. ΓòÉΓòÉΓòÉ 2.6.10. Dithering/Quantizing Options ΓòÉΓòÉΓòÉ
  989.  
  990. These are the different ways that a 24 bit image will be converted down to 8 
  991. bits.  These do not apply to the initial loading of JPEG files, it has its own 
  992. options. 
  993.  
  994.    o  Gray  The fastest way.  Converts image to grayscale.  Good for previewing 
  995.       new pictures. 
  996.  
  997.    o  Quick The fastest color way.  Not too bad but image degradation will 
  998.       occur.  Image is mapped into a fixed 256 color palette.  Use this one for 
  999.       fast color previews.  The others (below) are better but much slower. 
  1000.  
  1001.    o  Compromise Good compromise between speed and quality.  It doesn't do a 
  1002.       great job if the image has 10's of thousands of colors.  You have the 
  1003.       option of using error diffusion with this method, which will often 
  1004.       improve the look of the image. 
  1005.  
  1006.    o  Best  This implements Heckbert's Median Cut algorithm.  The best of the 
  1007.       methods and also the slowest, especially when error diffusion is 
  1008.       selected. Based on code by Jef Poskanzer (ppmquant.c - quantize colors). 
  1009.  
  1010.  Using the error diffusion option will usually produce noticeably better 
  1011.  images. This is more true for "real life" images than for cartoon types of 
  1012.  images. 
  1013.  
  1014.  Quantizing (reducing down to 256 colors) isn't always needed and it is much 
  1015.  faster if quantizing can be avoided.  You have the ability to specify whether 
  1016.  the image data should be checked to see if it contains more than 256 colors. 
  1017.  If the images you will be looking at will mostly/always have more than 256 
  1018.  colors you should not do the checking as it will be a waste of time.  If the 
  1019.  images are almost always 256 colors or less then doing the check will speed up 
  1020.  file reads and assure that the images are not degraded by needlessly 
  1021.  quantizing them. 
  1022.  
  1023.  
  1024. ΓòÉΓòÉΓòÉ 2.6.11. Toggle Title Bar ΓòÉΓòÉΓòÉ
  1025.  
  1026. Toggle Title Bar will turn on and off the main title bar.  Note that you can 
  1027. NOT MINIMIZE JView when the Title Bar is off. 
  1028.  
  1029.  
  1030. ΓòÉΓòÉΓòÉ 2.6.12. Float ΓòÉΓòÉΓòÉ
  1031.  
  1032. An interesting little function.  It is on when there is a check mark by this 
  1033. entry in the menu.  This causes the main (image) window to stay on top of all 
  1034. other application windows. Thus, when you are typing at your word processor, 
  1035. the JView window will stay on top of the application, but the application will 
  1036. still be active, and thus getting keyboard and mouse inputs!  Well, some of us 
  1037. here like it anyway.  Slight hit on the old CPU but it doesn't seem too bad. 
  1038. You can use the F key to toggle it on or off.  Its especially nice to turn on 
  1039. Float when running a slide show; just put JView in a corner just to keep things 
  1040. interesting. 
  1041.  
  1042.  
  1043. ΓòÉΓòÉΓòÉ 2.6.13. Refresh ΓòÉΓòÉΓòÉ
  1044.  
  1045. This simply causes the image window to be repainted. 
  1046.  
  1047.  
  1048. ΓòÉΓòÉΓòÉ 2.6.14. Save Window Positions ΓòÉΓòÉΓòÉ
  1049.  
  1050. Save Window Positions will store the current window locations of JView. This 
  1051. includes the File Open Dialog, the Information Dialog, and the main image 
  1052. window.  These stored positions will be used at startup. 
  1053.  
  1054.  
  1055. ΓòÉΓòÉΓòÉ 2.6.15. Move Window ΓòÉΓòÉΓòÉ
  1056.  
  1057. This mimics the effects that result when the system menu command Move (Alt + 
  1058. F7) is used.  The reason that it is duplicated here is that if you turn off the 
  1059. Title Bar the system menu disappears and you would lose the ability to move the 
  1060. window. 
  1061.  
  1062.  
  1063. ΓòÉΓòÉΓòÉ 2.6.16. Create JView.dth ΓòÉΓòÉΓòÉ
  1064.  
  1065. Create JView.dth file.  This file is needed to convert images so that they 
  1066. effectively use the system colormap (your default palette).  The process will 
  1067. take around a minute, depending on your system.  You may specify low or high 
  1068. CPU usage and can abort the process at any time.  The file created is used in 
  1069. conjunction with the JView.pal file.  To assure an accurate map of the system 
  1070. colormap it is imperative that before you run this option that you shutdown 
  1071. JView and ANY OTHER GRAPHICS PROGRAMS.  Next, delete the file JView.pal.  Now 
  1072. you can startup JView and run this option.  You will only need to run this 
  1073. option once or whenever you change graphics cards.  While the file creation is 
  1074. running you may use your computer as you normally would, even for running other 
  1075. graphics applications.  You will probably experience sluggishness until the 
  1076. process has finished unless you choose low CPU use. 
  1077.  
  1078.  
  1079. ΓòÉΓòÉΓòÉ 2.6.17. Load Add On... & Load OS/2 Image ... ΓòÉΓòÉΓòÉ
  1080.  
  1081. These two menu commands may appear depending on which options your have set for 
  1082. JView.  They are explained in Optimizing Performance. 
  1083.  
  1084.  
  1085. ΓòÉΓòÉΓòÉ 3. Other Information / Hints ΓòÉΓòÉΓòÉ
  1086.  
  1087. No, the hints aren't here, go in one more level. 
  1088.  
  1089.  
  1090. ΓòÉΓòÉΓòÉ 3.1. Controls ΓòÉΓòÉΓòÉ
  1091.  
  1092. There are several custom controls (controls you are familiar with are buttons, 
  1093. checkboxes, etc.) that JView uses.  There are described in detail in the 
  1094. following subsections. 
  1095.  
  1096.  
  1097. ΓòÉΓòÉΓòÉ 3.1.1. Control Definition ΓòÉΓòÉΓòÉ
  1098.  
  1099. Controls you are familiar with are buttons, checkboxes, etc.  Because of 
  1100. JView's specialized purpose, several unique controls have been created.  These 
  1101. controls are used for the input and output of information.  Often this is color 
  1102. related information.  A control is not used for directly drawing on your image. 
  1103. For example, a control is used to specify what color a paintbrush should be, 
  1104. but it is not used to apply the paintbrush. 
  1105.  
  1106. Virtually all JView controls that display color support dragging and dropping 
  1107. of color by use of the right mouse button. 
  1108.  
  1109.  
  1110. ΓòÉΓòÉΓòÉ 3.1.2. ColorWheel ΓòÉΓòÉΓòÉ
  1111.  
  1112. The colorwheel is a method of allowing you to interactively choose a color. 
  1113. OS/2 uses one to allow you to choose palette information.  They all work in a 
  1114. fairly similar fashion. 
  1115.  
  1116. The JView colorwheel displays a possible color in a three part process. The 
  1117. first part is the wheel itself.  The wheel shows a circle of colors that 
  1118. represent the range of Hue and Saturation available in HSV colorspace when 
  1119. intensity is equal to 100.  The color slider (the vertical rectangle of colors) 
  1120. represents the color selected in the wheel section with intensities ranging 
  1121. from 0 to 100.  The sample holder (the little circle of color beneath the 
  1122. buttons) holds the actual color as created by the wheel and slider.  You many 
  1123. drag the color out of the color sample (use the right mouse button) or use the 
  1124. Cancel and OK buttons. 
  1125.  
  1126. You have the ability to enter colors directly by specifying their components in 
  1127. a variety of color spaces by using the appropriate color space and values as 
  1128. entered in the spin buttons. 
  1129.  
  1130. You have the ability of finding a color anywhere on the screen by use of the 
  1131. Find button.  The color selected will be the color of the pixel under the mouse 
  1132. cursor when the right mouse button is pressed down. Note that you do not have 
  1133. to click the right mouse button, a slow press will work.  When you use Find, a 
  1134. magnified display of the area underneath the pointer is shown in the upper left 
  1135. corner of the screen.  While the right mouse button is being used to signal 
  1136. selection of a color, the left mouse button can still be used for its normal 
  1137. purpose. 
  1138.  
  1139. If your system is running with an 8 bit display a button labeled Refresh will 
  1140. appear.  Because there may be a limit on the number of colors that can be 
  1141. displayed at one time you may need to use Refresh to have the colorwheel's 
  1142. colors not be distorted. 
  1143.  
  1144. This sample holder supports drag & drop of colors with other JView controls. 
  1145.  
  1146.  
  1147. ΓòÉΓòÉΓòÉ 3.1.3. ColorWell ΓòÉΓòÉΓòÉ
  1148.  
  1149. This control holds the color that is of interest to the user.  The user may 
  1150. drag a new color into the well, or they may double-click the left mouse button 
  1151. to indicate that they wish to edit the color.  If an X appears across the 
  1152. control, it indicates that no color is currently selected into the control. 
  1153. When the control is disabled, the raised edge will become a moat. 
  1154.  
  1155.  
  1156. ΓòÉΓòÉΓòÉ 3.1.4. Curve Control ΓòÉΓòÉΓòÉ
  1157.  
  1158. The curve control has many variations which are controlled by the dialog that 
  1159. owns the curve control at the time in question.  For the user, the control is 
  1160. manipulated by placing the pointer over the control point on the curve that is 
  1161. of interest.  The left mouse button is then depressed and the user drags the 
  1162. control point to the desired location. 
  1163.  
  1164. The type of curve presented can be a function of between 2 and 10 points and 
  1165. can be linear or spline based.  The curve can be changed by using the right 
  1166. mouse button to bring up a popup menu which allows the user to select the 
  1167. desired settings.  In addition, curves can be saved or loaded. 
  1168.  
  1169. The curve is used as a way of visually mapping one series of points onto 
  1170. another. 
  1171.  
  1172.  
  1173. ΓòÉΓòÉΓòÉ 3.2. Drag and Drop ΓòÉΓòÉΓòÉ
  1174.  
  1175. JView supports the dragging and dropping of an image file or slideshow file 
  1176. onto either the JView Icon or onto a running version of JView.  JView will not 
  1177. accept drag and drop operations while a Slide Show is running or while a file 
  1178. is currently being read.  If you drag and drop multiple files at one time, the 
  1179. files will be loaded into a slide show and started with whatever defaults are 
  1180. currently selected as Slide Show options. 
  1181.  
  1182.  
  1183. ΓòÉΓòÉΓòÉ 3.3. Installation & Setup ΓòÉΓòÉΓòÉ
  1184.  
  1185. You should have seen this in the readme file included with your distribution of 
  1186. JView. 
  1187.  
  1188. We have used the philosophy that JView will impact your OS/2 system with as 
  1189. little change as possible so that if you ever decide to  get rid of JView, 
  1190. perish the thought, all you will need to do is delete the files in one 
  1191. directory. 
  1192.  
  1193. JView can be used as you got it without any system (config.sys) modifications. 
  1194. For best results you should put the JView files in a directory that is included 
  1195. in both your path statement and your libpath statement.  JView does sometimes 
  1196. create temporary files and because of this it looks to see if you have either a 
  1197. TMP or TEMP environmental variable set in your config.sys.  Lots of application 
  1198. use these so you probably have them defined.  If not, you can add one by 
  1199. entering the line SET TMP=c:\os2\tmp (or whatever directory you want your temp 
  1200. files stored in) in your config.sys file.  This keeps your system nice and 
  1201. clean so that you don't get random files popping up all over the place. 
  1202.  
  1203. The last installation option is aimed at people working in a network 
  1204. environment.  You can put an environment variable called JVIEWINI that points 
  1205. to a drive and directory where you want the JView.ini file to be stored. This 
  1206. is also the place where the palette file (described below) and other JView 
  1207. (permanent) files will be placed.  If this variable is not present in your 
  1208. config.sys, these files get placed in the same directory as JView.exe is 
  1209. located.  The main benefit of this option is that people running on a network 
  1210. can have one of JView (exe, dlls,  and help) located on a common drive with 
  1211. each personal .ini files on each person's machine.  In your config.sys this 
  1212. would look like SET JVIEWINI=C:\IMAGES. 
  1213.  
  1214. That's about the only change to your system that you can make regarding JView. 
  1215.  
  1216. When you run JView the first time, two files will be created.  The first is 
  1217. JView.ini which contains information about your current configuration of JView. 
  1218. The second file is JView.pal which contains the colors used in your default 
  1219. system setup.  The pal file is important when you are converting images to use 
  1220. the system colors on an 8 bit system.  When you run JView for the first time 
  1221. (and create the pal file) you should have your system setup color-wise in the 
  1222. way you will be using it.  This means that no other palette changing programs 
  1223. should be running at the time. 
  1224.  
  1225. Other files included with JView are the help files and several script and REXX 
  1226. example files.  In addition, certain functions may create files. These should 
  1227. always follow the standard of beginning with JVW or JView. 
  1228.  
  1229.  
  1230. ΓòÉΓòÉΓòÉ 3.4. Key Help ΓòÉΓòÉΓòÉ
  1231.  
  1232. There are keyboard equivalents (hot keys) to most of the basic popup menu 
  1233. commands.  If a menu item has a hot key equivalent, it will be shown on the 
  1234. right side of the popup menu.  The one exception to this is for Magnify hot 
  1235. keys, to keep the menu clean looking they are indicated by underlining the 
  1236. indicated value.  The use of single keystrokes is a slight departure from most 
  1237. software where key combos (like Ctrl + O) are the norm.  The reason for doing 
  1238. this is it allows more keys to be assigned, and those key assignments tend to 
  1239. be more logical.  These hot keys are only valid when the main window is active. 
  1240. They are: 
  1241.  
  1242.       A  Auto Crop the image. 
  1243.  
  1244.       Alt+A Toggle Aggressive Palette.  There will be a beep. 
  1245.  
  1246.       B Batch conversion. 
  1247.  
  1248.       C  Crop the image. 
  1249.  
  1250.       Alt+C  Custom crop the image using Custom Dialog. 
  1251.  
  1252.       D Load the Default JView image. 
  1253.  
  1254.       F ReFresh the image (repaint the window). 
  1255.  
  1256.       Ctrl+F Flip image Vertically. 
  1257.  
  1258.       Alt+F Flip image Horizontally. 
  1259.  
  1260.       H  Help table of contents. 
  1261.  
  1262.       I  Image information window. 
  1263.  
  1264.       Alt+I Iconify the file. 
  1265.  
  1266.       K  Key Help (this window). 
  1267.  
  1268.       M Brings up the main PopUp menu. 
  1269.  
  1270.       N and Alt+N  Opens next image in Open File Dialog's file listbox. 
  1271.  
  1272.       O and Ctrl+O  Open a file. 
  1273.  
  1274.       Alt+O  Options Dialog. 
  1275.  
  1276.       Ctrl+P Print the image. 
  1277.  
  1278.       P and Alt+P  Opens previous image in Open File Dialog's file listbox. 
  1279.  
  1280.       R  Resize the image. 
  1281.  
  1282.       Ctrl+R Rotate image Clockwise (+90 degrees). 
  1283.  
  1284.       Alt+R Rotate image CounterClockwise (-90 degrees). 
  1285.  
  1286.       S  Save a file 
  1287.  
  1288.       Alt+S  Slide Show Dialog 
  1289.  
  1290.       T Turn off the current selection region. 
  1291.  
  1292.       Alt+T Toggle Title Bar on and off. 
  1293.  
  1294.       U Undo most recent change to the image. 
  1295.  
  1296.       Z  Zoom in. 
  1297.  
  1298.       Alt+Z  Zoom out. 
  1299.  
  1300.       1 Magnify factor of 100% if using scroll bars for display. 
  1301.  
  1302.       2 Magnify factor of 200% if using scroll bars for display. 
  1303.  
  1304.       3 Magnify factor of 300% if using scroll bars for display. 
  1305.  
  1306.       4 Magnify factor of 400% if using scroll bars for display. 
  1307.  
  1308.       5 Magnify factor of 500% if using scroll bars for display. 
  1309.  
  1310.       +  Enlarge the image size by 10%. 
  1311.  
  1312.       -  Decrease the image size by 10%. 
  1313.  
  1314.       Alt + Space Bar  Minimize JView (Has Option setting to disable this hot 
  1315.       key). 
  1316.  
  1317.       Alt+F7  Move the window using arrow keys, works when Title Bar is off. 
  1318.  
  1319.       Ctrl+Ins  Copy to the clipboard. 
  1320.  
  1321.       Alt+Ins  Copy special to the clipboard. 
  1322.  
  1323.       Shift+Ins  Paste from clipboard. 
  1324.  
  1325.  The Open File dialog has the following keyboard equivalents, they are active 
  1326.  only when the Open File dialog is active.  They are: 
  1327.  
  1328.       Alt+N Show next image in the files listbox. 
  1329.  
  1330.       Ctrl+O Open the currently selected file. 
  1331.  
  1332.       Alt+P Show previous image in the files listbox. 
  1333.  
  1334.       Alt+Space Bar Minimize JView  (See space bar above). 
  1335.  
  1336.  
  1337. ΓòÉΓòÉΓòÉ 3.5. Optimizations ΓòÉΓòÉΓòÉ
  1338.  
  1339. There are three ways that you can significantly change the speed and resource 
  1340. use of JView.  What you need to think about is how you use this product.  That 
  1341. will largely determine how you set these options. 
  1342.  
  1343. First off, you have the ability to use image file readers/writers that ship 
  1344. with OS/2 Warp's BonusPak.  If you have Light Tables installed on your system 
  1345. then these readers are already present.  To install these readers from CD-ROM, 
  1346. access the \MMVIEWER directory on your BonusPak CD.  Run the program MINSTALL 
  1347. with the option /F:CONTROL.MMV.  If you have disks, run the program from the 
  1348. diskette labeled IBM Multimedia Viewer.  (See page 3-5 of the document labeled 
  1349. BonusPak that ships with Warp).  BTW, don't install them all, just the ones you 
  1350. are interested in. 
  1351.  
  1352. By installing these readers, you expand the range file formats that JView can 
  1353. use.  Some of the formats available are the Kodak PhotoCD, Apple files, Atari 
  1354. files, etc. Using these formats is slower than those that are built-in to 
  1355. JView, but this method minimizes the duplication of code that would result if 
  1356. JView had all of these built-in.  Further, as IBM releases new file formats, 
  1357. JView will instantly be able to access them without you having to purchase an 
  1358. updated version. 
  1359.  
  1360. The downside to always loading these optional formats is that the startup time 
  1361. for JView is increased and JView will use more system resources (read memory). 
  1362. But just having them installed doesn't cause them to always be loaded.  Under 
  1363. the Options dialog - the Misc section, you can specify whether to load these 
  1364. readers on startup.  If you choose not to, a command will appear under the Misc 
  1365. section of the main PopUp menu saying Load OS/2 Image Readers.  Selecting this 
  1366. at any time while JView is running will add whatever readers are present.  So, 
  1367. if you rarely use these optional formats, choose not to load them on startup. 
  1368. If you find that you need to load an image stored in one of these formats, just 
  1369. run the Load OS/2 Image Readers command and go ahead. 
  1370.  
  1371. JView has been designed in a modular manner to allow you to pick and choose 
  1372. what features you wish.  This has the side benefit of only loading those 
  1373. functions you want or need. These functions are stored in DLLs (dynamic link 
  1374. libraries) and their associated help files.  The downside to this method is 
  1375. that the startup time for JView is increased.  If you use JView mostly to view 
  1376. images and only sometimes want to use the optional features, you can specify 
  1377. that JView not load the optional Dlls on startup.  You do this by checking the 
  1378. appropriate box in the Options menu - under Misc, Load Optional Dlls on 
  1379. Startup.  Now JView will startup much faster, but you have lost access to all 
  1380. those features you may want at sometime.  Not to worry.  Just as happened 
  1381. above, a new command will appear in the Misc section of the main PopUp menu. 
  1382. This command is Load Add On Dlls. Running it will cause all the optional 
  1383. function to become available. 
  1384.  
  1385. To recap then, if most of the time you just use JView to view standard image 
  1386. files (Bitmaps, GIFs, JPEGS) and little more, turn both Load Optional Dlls on 
  1387. Startup and Check for OS/2 Image Readers on Startup off. 
  1388.  
  1389. One last area for increasing performance involves the use of temporary files. 
  1390. JView often needs to store large amounts of data but doesn't need to access 
  1391. that data often.  Typically you would use temporary files to hold this 
  1392. information instead of main memory.  If the temporary files can be placed on 
  1393. your fasted harddrive then performance will increase.  This is true for all 
  1394. applications, not just JView.  You can make sure this is the case by having the 
  1395. environmental variables TMP and/or TEMP set to the appropriate drive and 
  1396. directory. 
  1397.  
  1398.  
  1399. ΓòÉΓòÉΓòÉ 3.6. Thread Priorities ΓòÉΓòÉΓòÉ
  1400.  
  1401. OS/2 has (for all practical purposes) 2 levels of thread priority, low(idle) 
  1402. and regular.  There seems to be a limit on the number of low priority threads 
  1403. that can be active at once.  Many applications (CPU meters, clocks, etc.) use 
  1404. low priority threads.  Along comes JView and it wants to use one.  Well OS/2 
  1405. will give JView a low priority thread, but OS/2 doesn't want to devote any CPU 
  1406. cycles to that thread.  The net effect is that nothing happens as far as JView 
  1407. processing is concerned.  Another possibility is that DOS applications and 
  1408. certain other OS/2 programs will cause OS/2 to not give any CPU time to low 
  1409. priority threads.  If you have many applications running (or DOS programs) and 
  1410. you try something with JView and nothing seems to happen, try regular priority 
  1411. threads instead.  Most of the time with JView you can use a check box to 
  1412. specify whether a command should occur at low or regular priority or you can 
  1413. use a menu selection to alter the priority.  Some commands might start out at 
  1414. low priority.  These commands can be upgraded to regular priority by using a 
  1415. menu command. 
  1416.  
  1417.  
  1418. ΓòÉΓòÉΓòÉ 3.7. Quick Dir ΓòÉΓòÉΓòÉ
  1419.  
  1420. An especially useful feature, the Quick Dir listbox is present in several 
  1421. different dialogs.  It is only in the Options dialog that the Quick Dir listbox 
  1422. can be modified. Aside from modifying the Quick Dir listbox, the Options dialog 
  1423. is not affected by it.  The format for an entry is to have a drive letter and 
  1424. full path 
  1425.  
  1426. For Example  c:\images\gif, there should not be any trailing slashes.  There is 
  1427. no limit on the number of entries. 
  1428.  
  1429. The basic use of the Quick Dir is to allow the user to quickly access 
  1430. frequently used directories. So you put directories here that you often visit, 
  1431. either for loading files or saving files.  Then, instead of having to change 
  1432. drives and move through multiple directories you simply select the place you 
  1433. want to go. 
  1434.  
  1435.  
  1436. ΓòÉΓòÉΓòÉ 3.8. Viewing Strategies ΓòÉΓòÉΓòÉ
  1437.  
  1438. Images are displayed in several ways. Three ways that are always available are 
  1439. : 1) a full size image where scroll bars appear if the image is larger than its 
  1440. display window, 2) just a simple, correctly scaled image which will fill the 
  1441. display window as much as possible without distorting and 3) an image that 
  1442. starts out scaled, but if the window size changes the aspect ratio will change 
  1443. so that the picture always fills up the entire display window.  These types of 
  1444. display can be modified somewhat by selecting the fixed window size attribute. 
  1445. This option will force JView to not resize the viewing window each time a new 
  1446. file is loaded.  The user can still manually resize the window at any time. 
  1447.  
  1448. The SlideShow offers two addition ways of displaying images.  See SlideShow for 
  1449. more information. 
  1450.  
  1451. The most important thing to remember when using JView is that the actual 
  1452. resolution of the image (the width x height) is not always the same as that 
  1453. which it is displayed with.  For example, let's say you are working on a system 
  1454. that is limited to a display of 640 by 480 and you try and load an image that 
  1455. is 2000 by 2000.  Assuming your are not using scroll bars, JView will resize 
  1456. the image to fit the screen when it displays the image to you, but the data 
  1457. representing the image will stay at 2000 by 2000.  Any operations 
  1458. (manipulations) that you perform on the image will by done on the original 
  1459. image, the 2000 by 2000 one.  Now, let's say you use the ReSize command to 
  1460. reduce the image to 640 by 480.  As far as you can see, nothing will have 
  1461. changed.  This is because the image size is still as big as the display can 
  1462. handle.  In reality you have changed the image size and if you save the image 
  1463. it will be different than the one you originally loaded.  The Image Information 
  1464. option on the main menu will keep you apprised of the actual vs displayed 
  1465. resolution of the current image.  When you save a file there is the option to 
  1466. save at the currently displayed size, the above discussion is why that option 
  1467. exists. 
  1468.  
  1469.  
  1470. ΓòÉΓòÉΓòÉ 4. File Formats ΓòÉΓòÉΓòÉ
  1471.  
  1472. A variety of file formats are supported.  See each individual one for more 
  1473. info. 
  1474.  
  1475. You should be aware of some limitations when doing conversions between 
  1476. different file formats or if you are constantly reading and saving the same 
  1477. image over and over again (See JPEG). 
  1478.  
  1479.  
  1480. ΓòÉΓòÉΓòÉ 4.1. JPEG ΓòÉΓòÉΓòÉ
  1481.  
  1482. The JPEG reading and writing code is based on the following people's work: 
  1483.  
  1484. The Independent JPEG Group's JPEG software
  1485. ==========================================
  1486. This software is the work of Tom Lane, Philip Gladstone, Luis Ortiz, Jim
  1487. Boucher, Lee Crocker, George Phillips, Davide Rossi, Ge' Weijers, and other
  1488. members of the Independent JPEG Group.
  1489.  
  1490. LEGAL ISSUES
  1491. ============
  1492.  
  1493. The authors make NO WARRANTY or representation, either express or implied,
  1494. with respect to this software, its quality, accuracy, merchantability, or
  1495. fitness for a particular purpose.  This software is provided "AS IS", and you,
  1496. its user, assume the entire risk as to its quality and accuracy.
  1497.  
  1498. This software is copyright (C) 1991, 1992, 1993, 1994, 1995, Thomas G. Lane.
  1499. All Rights Reserved except as specified below.
  1500.  
  1501. Permission for use of this software is granted only if the user accepts
  1502. full responsibility for any undesireable consequences; the authors accept
  1503. NO LIABILITY for damages of any kind.
  1504.  
  1505. Permission is NOT granted for the use of any IJG author's name or company name
  1506. in advertising or publicity relating to this software or products derived from
  1507. it.  This software may be referred to only as "the Independent JPEG Group's
  1508. software".
  1509.  
  1510. We specifically permit and encourage the use of this software as the basis of
  1511. commercial products, provided that all warranty or liability claims are
  1512. assumed by the product vendor.
  1513. ==================
  1514.  
  1515. The Quality setting affects the size of file that the JPEG save routine will 
  1516. create.  It lets you trade off compressed file size against the quality of the 
  1517. saved image: the higher the quality setting, the larger the JPEG file, and the 
  1518. closer the output image will be to the original input.  Normally you want to 
  1519. use the lowest quality setting (smallest file) that decompresses into something 
  1520. visually indistinguishable from the original image.  For this purpose the 
  1521. quality setting should be between 50 and 95; the default of 75 is often about 
  1522. right.  If you see defects at quality 75, then go up 5 or 10 units at a time 
  1523. until you are happy with the output image.  The optimal setting is an aesthetic 
  1524. judgement that varies image to image. Quality values above about 95 are NOT 
  1525. recommended for normal use; the compressed file size goes up dramatically for 
  1526. hardly any gain in output image quality. In the other direction, quality values 
  1527. below 50 will produce very small files of low image quality.  Settings around 5 
  1528. to 10 might be useful in preparing an index of a large image library, for 
  1529. example.  Try quality 2 (or so) for some amusing Cubist effects.  (Note: 
  1530. quality values below about 25 generate 2-byte quantization tables, which are 
  1531. considered optional in the JPEG standard. Some commercial JPEG programs may be 
  1532. unable to decode the resulting file.) 
  1533.  
  1534. Smooth Factor: Smooth the input image to eliminate dithering noise.  The value 
  1535. selected, ranging from 1 to 100, indicates the strength of smoothing.  0 will 
  1536. mean to not use smoothing and can be used instead of the check button.  The 
  1537. Smooth option filters the currently displayed image to eliminate fine-scale 
  1538. noise. A smoothing factor of 10 to 50 gets rid of dithering patterns in the 
  1539. input file, resulting in a smaller JPEG file and a better-looking image.  Too 
  1540. large a smoothing factor will visibly blur the image. 
  1541.  
  1542. Optimization of entropy encoding parameters. Without this, default encoding 
  1543. parameters are used. Optimize usually makes the JPEG file a little smaller, but 
  1544. JView runs somewhat slower and needs much more memory.  Image quality and speed 
  1545. of decompression are unaffected by optimize. It's also a win when you are using 
  1546. low quality settings to make very small JPEG files; the percentage improvement 
  1547. is often a lot more than it is on larger files. 
  1548.  
  1549. The DCT method can be either Fast, Slow, or Float.  The DCT refers to the 
  1550. transform used to create the actual JPEG data.  Ideally it is a floating point 
  1551. process.  If your computer has its own floating point processor, you may get 
  1552. superior performance by choosing Float (for floating point).  The other two 
  1553. options refer to using integer methods to duplicate the floating point 
  1554. calculations.  Fast, duh, is faster than the Slow method, but less accurate. 
  1555. The DCT is used for both reading a writing of JPEGs. 
  1556.  
  1557. When reading a JPEG on an 8 bit system, there are five mutually exclusive 
  1558. option that deals with quantization of the colors (converting from a 24 to 8 
  1559. bit image).  Your options are: 
  1560.  
  1561.    o  Quick  The one pass color quantization.  The fastest of the color 
  1562.       quantizings, but probably will result in a noticeably inferior image. 
  1563.       Good for a quick look. 
  1564.  
  1565.    o  Slow  This implements Heckbert's Median Cut algorithm.  Quality in line 
  1566.       with Best.  Very slow compared to the built-in JPEG quantizer.  For most 
  1567.       JPEGs it will probably give only minor quality improvements. Make your 
  1568.       own judgment.  It is not part of the regular JPEG libraries. 
  1569.  
  1570.    o  Best  Floyd-Steinberg dithering is used.  Based on ppmquant.c by Jef 
  1571.       Poskanzer. 
  1572.  
  1573.    o  BuiltIn  Uses the JPEG libraries built-in two pass quantizer.  This is 
  1574.       the recommended choice. 
  1575.  
  1576.    o  Gray  Hands down the fastest way to look at a JPEG.  Results in gray 
  1577.       colors only, but good way to take a quick look. 
  1578.  
  1579.  When quantization takes place, you can optionally specify a dithering method. 
  1580.  Your choices are Floyd Steinberg (the recommended choice), Ordered and None. 
  1581.  Dithering is a method of introducing error into the image that actually make 
  1582.  it look better.  Seeing is believing. 
  1583.  
  1584.  
  1585. ΓòÉΓòÉΓòÉ 4.2. Bitmaps ΓòÉΓòÉΓòÉ
  1586.  
  1587. The two important types of bitmaps supported are Windows and OS/2 style 
  1588. bitmaps. JView should read any of these type of bitmaps (RLE and non-RLE) with 
  1589. the following caveats: 
  1590.  
  1591.    o  Black and White images that are stored by using modified Huffman encoding 
  1592.       cannot be read. 
  1593.  
  1594.    o  OS/2 allows the use of halftones and such.  JView does not read these but 
  1595.       no one has ever seen one. 
  1596.  
  1597.  Bitmaps can be saved in either RLE on uncompressed format.  The RLE encoding 
  1598.  scheme is fairly brain dead and will actually increase the size of the file 
  1599.  for "real life" images with more than 16 colors.  JView does some comparing 
  1600.  and will minimize the file size to its best ability so you should only see 
  1601.  slight increases in file size but then again you may see a significant 
  1602.  decrease.  You pay your money and you takes your chances. 
  1603.  
  1604.  
  1605. ΓòÉΓòÉΓòÉ 4.3. GIF ΓòÉΓòÉΓòÉ
  1606.  
  1607. Does em'. 
  1608.  
  1609. You can choose to interlace your GIF.  This is useful when you want the image 
  1610. to appear as it is being received (by modem or download).  The other option is 
  1611. to designate one color as representing transparency.  JView doesn't use this 
  1612. information when reading a GIF, however many applications - notably Web 
  1613. browsers - use this information to allow the display of an image to appear to 
  1614. be non-rectangular. 
  1615.  
  1616. JView will read both GIF87a and GIF89a formats but will write only GIF87a 
  1617. format. If a multi-image gif file is encountered you will have the option of 
  1618. breaking the images apart and creating a sequence of OS/2 bitmaps from them or 
  1619. just reading the first image. 
  1620.  
  1621. "The Graphics Interchange Format(c) is the Copyright property of
  1622. CompuServe Incorporated.  GIF(sm) is a Service Mark property of
  1623. CompuServe Incorporated."
  1624.  
  1625.  
  1626. ΓòÉΓòÉΓòÉ 4.4. PNG ΓòÉΓòÉΓòÉ
  1627.  
  1628. PNG is supported in all formats.  Full Alpha channel is supported, but the 
  1629. information is used to create a display version of the image and is 
  1630. subsequently lost. When saving you can choose to interlace and for 8 bit images 
  1631. a transparency color can be designated. 
  1632.  
  1633.  
  1634. ΓòÉΓòÉΓòÉ 4.5. TARGA ΓòÉΓòÉΓòÉ
  1635.  
  1636. The code to read Targa images is based on tgatoppm.c by Jef Poskanzer.  This is 
  1637. the copyright information from that file. 
  1638.  
  1639. /* tgatoppm.c - read a TrueVision Targa file and write a portable pixmap
  1640. ** Partially based on tga2rast, version 1.0, by Ian MacPhedran.
  1641. ** Copyright (C) 1989 by Jef Poskanzer.
  1642. ** Permission to use, copy, modify, and distribute this software and its
  1643. ** documentation for any purpose and without fee is hereby granted, provided
  1644. ** that the above copyright notice appear in all copies and that both that
  1645. ** copyright notice and this permission notice appear in supporting
  1646. ** documentation.  This software is provided "as is" without express or
  1647. ** implied warranty.
  1648.  
  1649. JView does both RLE and non-RLE style files. 
  1650.  
  1651.  
  1652. ΓòÉΓòÉΓòÉ 4.6. PBM ΓòÉΓòÉΓòÉ
  1653.  
  1654. JView uses the term PBM loosely, there are really three (or six) different 
  1655. types of formats here.  They are: 
  1656.  
  1657.              PGM - portable graymap file format
  1658.  
  1659.    The portable graymap format is a lowest common denominator grayscale file
  1660.    format.  The definition is as follows:
  1661.  
  1662.    - A "magic number" for identifying the file type.  A  pgm  file's  magic
  1663.     number is the two characters "P2".
  1664.  
  1665.    - Whitespace (blanks, TABs, CRs, LFs).
  1666.  
  1667.    - A width, formatted as ASCII characters in decimal.
  1668.  
  1669.    - Whitespace.
  1670.  
  1671.    - A height, again in ASCII decimal.
  1672.  
  1673.    - Whitespace.
  1674.  
  1675.    - The maximum gray value, again in ASCII decimal.
  1676.  
  1677.    - Whitespace.
  1678.  
  1679.    - Width * height gray values, each in ASCII decimal, between  0  and  the
  1680.     specified  maximum value, separated by whitespace, starting at the top-
  1681.     left corner of the graymap, proceeding in normal English reading  order.
  1682.     A value of 0 means black, and the maximum value means white.
  1683.  
  1684.    - Characters from a "#" to the next end-of-line are ignored (comments).
  1685.  
  1686.    - No line should be longer than 70 characters.
  1687.  
  1688.    Here is an example of a small graymap in this format:
  1689.    P2
  1690.    # feep.pgm
  1691.    24 7
  1692.    15
  1693.    0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
  1694.    0  3  3  3  3  0  0  7  7  7  7  0  0 11 11 11 11  0  0 15 15 15 15  0
  1695.    0  3  0  0  0  0  0  7  0  0  0  0  0 11  0  0  0  0  0 15  0  0 15  0
  1696.    0  3  3  3  0  0  0  7  7  7  0  0  0 11 11 11  0  0  0 15 15 15 15  0
  1697.    0  3  0  0  0  0  0  7  0  0  0  0  0 11  0  0  0  0  0 15  0  0  0  0
  1698.    0  3  0  0  0  0  0  7  7  7  7  0  0 11 11 11 11  0  0 15  0  0  0  0
  1699.    0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
  1700.  
  1701.  
  1702.    There is also a variant on the format, the RAW style.
  1703.    This variant is different in the following ways:
  1704.  
  1705.    - The "magic number" is "P5" instead of "P2".
  1706.  
  1707.    - The gray values are stored as plain bytes, instead of ASCII decimal.
  1708.  
  1709.    - No whitespace is allowed in  the  grays  section,  and  only  a  single
  1710.     character  of  whitespace  (typically  a  newline) is allowed after the
  1711.     maxval.
  1712.  
  1713.    - The files are smaller and many times faster to read and write.
  1714.  
  1715.    Note that this raw format can only be used for maxvals less than or equal
  1716.    to 255.
  1717.  
  1718.           PBM - portable bitmap file format
  1719.  
  1720.    The portable bitmap format is a lowest common denominator monochrome file
  1721.    format.  It was originally designed to make it reasonable to mail bitmaps
  1722.    between different types of machines  using  the  typical  stupid  network
  1723.    mailers  we  have today.  Now it serves as the common language of a large
  1724.    family of bitmap conversion filters.  The definition is as follows:
  1725.  
  1726.    - A "magic number" for identifying the file type.  A  pbm  file's  magic
  1727.     number is the two characters "P1".
  1728.  
  1729.    - Whitespace (blanks, TABs, CRs, LFs).
  1730.  
  1731.    - A width, formatted as ASCII characters in decimal.
  1732.  
  1733.    - Whitespace.
  1734.  
  1735.    - A height, again in ASCII decimal.
  1736.  
  1737.    - Whitespace.
  1738.  
  1739.    - Width * height bits, each either '1' or '0', starting at  the  top-left
  1740.     corner of the bitmap, proceeding in normal English reading order.
  1741.  
  1742.    - The character '1' means black, '0' means white.
  1743.  
  1744.    - Whitespace in the bits section is ignored.
  1745.  
  1746.    - Characters from a "#" to the next end-of-line are ignored (comments).
  1747.  
  1748.    - No line should be longer than 70 characters.
  1749.  
  1750.    Here is an example of a small bitmap in this format:
  1751.    P1
  1752.    # feep.pbm
  1753.    24 7
  1754.    0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  1755.    0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0
  1756.    0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0
  1757.    0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 1 0
  1758.    0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0
  1759.    0 1 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 0 0 0 0
  1760.    0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  1761.  
  1762.  
  1763.    There is also a variant on the format, the RAW style.
  1764.    This variant is different in the following ways:
  1765.  
  1766.    - The "magic number" is "P4" instead of "P1".
  1767.  
  1768.    - The bits are stored eight per byte, high bit first low bit last.
  1769.  
  1770.    - No whitespace is allowed  in  the  bits  section,  and  only  a  single
  1771.     character  of  whitespace  (typically  a  newline) is allowed after the
  1772.     height.
  1773.  
  1774.    - The files are eight times smaller and many times  faster  to  read  and
  1775.     write.
  1776.  
  1777.               PPM - portable pixmap file format
  1778.  
  1779.    The portable pixmap format is a lowest  common  denominator  color  image
  1780.    file format.  The definition is as follows:
  1781.  
  1782.    - A "magic number" for identifying the file type.  A  ppm  file's  magic
  1783.     number is the two characters "P3".
  1784.  
  1785.    - Whitespace (blanks, TABs, CRs, LFs).
  1786.  
  1787.    - A width, formatted as ASCII characters in decimal.
  1788.  
  1789.    - Whitespace.
  1790.  
  1791.    - A height, again in ASCII decimal.
  1792.  
  1793.    - Whitespace.
  1794.  
  1795.    - The maximum color-component value, again in ASCII decimal.
  1796.  
  1797.    - Whitespace.
  1798.  
  1799.    - Width * height pixels, each three ASCII decimal values  between  0  and
  1800.     the  specified  maximum  value,  starting at the top-left corner of the
  1801.     pixmap, proceeding in normal English reading order.  The  three  values
  1802.     for each pixel represent red, green, and blue, respectively; a value of
  1803.     0 means that color is off, and the maximum value means  that  color  is
  1804.     maxxed out.
  1805.  
  1806.    - Characters from a "#" to the next end-of-line are ignored (comments).
  1807.  
  1808.    - No line should be longer than 70 characters.
  1809.  
  1810.    Here is an example of a small pixmap in this format:
  1811.    P3
  1812.    # feep.ppm
  1813.    4 4
  1814.    15
  1815.    0  0  0   0  0  0   0  0  0  15  0 15
  1816.    0  0  0   0 15  7   0  0  0   0  0  0
  1817.    0  0  0   0  0  0   0 15  7   0  0  0
  1818.    15  0 15   0  0  0   0  0  0   0  0  0
  1819.  
  1820.    There is also a variant on the format, the RAW style.
  1821.    This variant is different in the following ways:
  1822.  
  1823.    - The "magic number" is "P6" instead of "P3".
  1824.  
  1825.    - The pixel values are stored as plain bytes, instead of ASCII decimal.
  1826.  
  1827.    - Whitespace is not allowed  in  the  pixels  area,  and  only  a  single
  1828.     character  of  whitespace  (typically  a  newline) is allowed after the
  1829.     maxval.
  1830.  
  1831.    - The files are smaller and many times faster to read and write.
  1832.  
  1833.    Note that this raw format can only be used for maxvals less than or equal
  1834.    to 255.
  1835.  
  1836.    The above three descriptions are very slightly altered versions of descriptions
  1837.    originally written and Copyrighted (C) 1989, 1991 by Jef Poskanzer.
  1838.  
  1839. So, if you need to input a file format that JView does not support, here is 
  1840. your chance if you know the format of the data you already have.  Convert the 
  1841. data into the appropriate ASCII format style above.  It is probably simplest 
  1842. just to use the ppm format and let JView convert it down into the appropriate 
  1843. number of colors. 
  1844.  
  1845.  
  1846. ΓòÉΓòÉΓòÉ 4.7. X11 Bitmap ΓòÉΓòÉΓòÉ
  1847.  
  1848. The X11 format is for black and white images only. 
  1849.  
  1850.  
  1851. ΓòÉΓòÉΓòÉ 4.8. Sun Raster ΓòÉΓòÉΓòÉ
  1852.  
  1853. Nothing too exciting to say here, it just does it. 
  1854.  
  1855.  
  1856. ΓòÉΓòÉΓòÉ 4.9. PCX ΓòÉΓòÉΓòÉ
  1857.  
  1858. The code for reading and writing PCX files is based on work by Michael 
  1859. Davidson.  There have been significant changes, including the ability to handle 
  1860. 24 bit images.  This should handle up to version 5 PCX. 
  1861.  
  1862.  
  1863. ΓòÉΓòÉΓòÉ 4.10. TIFF ΓòÉΓòÉΓòÉ
  1864.  
  1865. The code for reading and writing TIFFs is based on code written by Sam Leffler. 
  1866. Here is his copyright notice. 
  1867.  
  1868. /*
  1869.  * Copyright (c) 1991, 1992 Sam Leffler
  1870.  * Copyright (c) 1991, 1992 Silicon Graphics, Inc.
  1871.  *
  1872.  * Permission to use, copy, modify, distribute, and sell this software and
  1873.  * its documentation for any purpose is hereby granted without fee, provided
  1874.  * that (i) the above copyright notices and this permission notice appear in
  1875.  * all copies of the software and related documentation, and (ii) the names of
  1876.  * Sam Leffler and Silicon Graphics may not be used in any advertising or
  1877.  * publicity relating to the software without the specific, prior written
  1878.  * permission of Sam Leffler and Silicon Graphics.
  1879.  *
  1880.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
  1881.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
  1882.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  1883.  *
  1884.  * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  1885.  * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  1886.  * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  1887.  * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
  1888.  * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  1889.  * OF THIS SOFTWARE.
  1890.  */
  1891.  
  1892. When you save a TIFF file, there are several choices for the type of TIFF file 
  1893. to stored. 
  1894.  
  1895. Understanding the TIFF specification is beyond the capabilities of most mortals 
  1896. and we will not even begin to think about getting into it in detail.  If you 
  1897. have trouble importing or exporting TIFF files to other applications, well 
  1898. tough tiff, it is beyond our capabilities to deal with all the possible 
  1899. inconsistencies. 
  1900.  
  1901.  
  1902. ΓòÉΓòÉΓòÉ 4.11. Utah RLE ΓòÉΓòÉΓòÉ
  1903.  
  1904. JView only reads Utah RLE files, it will not write them. 
  1905.  
  1906.  
  1907. ΓòÉΓòÉΓòÉ 4.12. MetaFiles ΓòÉΓòÉΓòÉ
  1908.  
  1909. JView will only read MetaFiles, it will not write them.  Meta files are 
  1910. actually a series of drawing commands and so you can imagine how big a file 
  1911. would be if every command was to draw a single point at some color (well, WE 
  1912. can imagine it at least).  JView will size the MetaFile to display onto the 
  1913. screen and then create a raster version of it.  You cannot stop a MetaFile from 
  1914. playing once it has started. 
  1915.  
  1916. Since MetaFiles are played and not just displayed, JView will not perform batch 
  1917. conversions on them. 
  1918.  
  1919.  
  1920. ΓòÉΓòÉΓòÉ 4.13. Slide Show Files ΓòÉΓòÉΓòÉ
  1921.  
  1922. JView can store a selection of files for use in a Slide Show.  These typically 
  1923. are given and extension of sls.  You can load these files using the Slide Show 
  1924. Dialog or the regular File Open Dialog.  In addition, you can drag and drop 
  1925. such a file onto JView to begin play. 
  1926.  
  1927.  
  1928. ΓòÉΓòÉΓòÉ 4.14. Other File Formats ΓòÉΓòÉΓòÉ
  1929.  
  1930. JView has the ability to tap into file formats supported by Warp but not 
  1931. actually built into JView.  See Additional Formats  for detailed info. 
  1932.  
  1933.  
  1934. ΓòÉΓòÉΓòÉ 5. REXX Scripts ΓòÉΓòÉΓòÉ
  1935.  
  1936. One of the more powerful features of OS/2 is its command language, REXX.  JView 
  1937. has the ability to run and interact with REXX scripts.  If a REXX script is 
  1938. dragged onto JView, or a REXX file is opened, that file will be run by JView. 
  1939. The REXX files should be designed to work with JView, to that end when such a 
  1940. file is being run by JView several REXX commands become available so that the 
  1941. REXX file can interact with JView. 
  1942.  
  1943. When JView is running a REXX script, several commands are available.  They are 
  1944. called just like any REXX command, with either 
  1945.  
  1946. call JVWcommand("hello_there")
  1947. or
  1948. JVWcommand "hello_there"
  1949.  
  1950. Included with the distribution disk that JView comes on are two example REXX 
  1951. files, example.cmd and povshow.cmd.  The files in conjunction with this help 
  1952. section should provide you with enough information to write your own REXX 
  1953. files. 
  1954.  
  1955. The descriptions of the commands that follow will list the command names in 
  1956. alphabetical order.  Beside each command will be a description of what the 
  1957. command does and a listing of any required arguments.  When an argument is 
  1958. described as a string, it means that alphanumeric text is required - this is 
  1959. contrasted with a number or integer.  "hello" is a string while 456 is an 
  1960. integer. All numeric information must be integers, no decimals should be used. 
  1961.  
  1962.    o  JVWCropImage.  This command is used to crop the current image.  There are 
  1963.       four required arguments, all integers, and they specify the lower left 
  1964.       corner and upper right corner of the cropping region.  In order they are 
  1965.       the left most X position, the bottom most Y position, the right most X 
  1966.       position, and the top most Y position.  An example is 
  1967.  
  1968.             call JVWCropImage(10, 20, 400, 500)
  1969.  
  1970.       Assuming your image starts out being 1000 by 1000, this command would 
  1971.       cause all pixels to the left of 10, below 20, right of 400 and above 500 
  1972.       to be discarded. 
  1973.  
  1974.  
  1975.    o  JVWFlipImage.  This command will flip the image either horizontally or 
  1976.       vertically depending on the supplied argument.  One argument is required 
  1977.       and should be a string that is either "horizontal" or "vertical".  An 
  1978.       example is 
  1979.  
  1980.             call JVWFlipImage("vertical")
  1981.  
  1982.    o  JVWGetImageInfo  This command does not use any arguments.  It does return 
  1983.       information in the form of a string that needs to be parsed for the 
  1984.       individual values.  The parameters that make up the returned string are: 
  1985.       image width, image height, image depth (8 or 24), number of unique colors 
  1986.       (only significant for 8 bit images), window X position, window Y 
  1987.       position, window width, window height, a string that is either "crop_on" 
  1988.       or "crop_off" which informs whether a cropping (selection) region is 
  1989.       active, and four integers that represent the lower left corner (x, y) and 
  1990.       upper right corner (x, y) of the cropping rectangle if it is on.  An 
  1991.       example of its use is 
  1992.  
  1993.             rc = JVWGetImageInfo()
  1994.             PARSE VAR rc width height depth colors position_x position_y window_width window_height crop_status crop_left crop_bottom crop_right crop_top
  1995.  
  1996.    o  JVWOpenFile  This command causes a new image to be loaded.  It has one or 
  1997.       two arguments, both strings.  The first argument is the name of the file 
  1998.       to be loaded.  It should include a drive and full path.  The second 
  1999.       argument is optional and signals whether a low priority thread should be 
  2000.       used for the loading.  The second argument would be "low" if it is used. 
  2001.       Two examples 
  2002.  
  2003.             call JVWOpenFile("c:\image\judy.jpg", "low") - a low priority read.
  2004.             call JVWOpenFile("c:\image\judy.jpg") - a regular priority read.
  2005.  
  2006.    o  JVWResizeImage.  This command resizes the image to the specified 
  2007.       dimensions.  Two arguments are required, both should be integers.  They 
  2008.       are, in order, the new width and the new height.  An example is 
  2009.  
  2010.             call JVWResizeImage(500, 1000)
  2011.  
  2012.       This would make the image 500 pixels wide and 1000 pixels high. 
  2013.  
  2014.  
  2015.    o  JVWRotateImage.  This command will rotate the image 90 degrees in either 
  2016.       the clockwise or counterclockwise direction.  One argument is required 
  2017.       and should be a string that is either "clockwise" or "counterclockwise". 
  2018.       An example is 
  2019.  
  2020.             call JVWRotateImage("clockwise")
  2021.  
  2022.    o  JVWSaveFile  This command is used to save the current image.  The command 
  2023.       requires two arguments and has two optional arguments.  All arguments are 
  2024.       strings.  The first argument is the file name.  It should include the 
  2025.       drive and path. The next argument is the file type, it must be one of the 
  2026.       following: "os2", "os2_rle", "windows", "windows_rle", "x11", "gif", 
  2027.       "jpeg", "pbm_ascii", "pbm_raw", "pcx", "sun", "targa", "targa_rle", 
  2028.       "tiff_none", "tiff_lzw", "tiff_pack", "tiff_fax_3", or "tiff_fax_4".  The 
  2029.       next argument is optional and dictates the color depth of the saved 
  2030.       image.  A value of "full" will not alter the color depth.  A value of 
  2031.       "gray" will cause the image to be saved as grayscale, while "bw" will 
  2032.       cause the image to become black and white.  The next argument is also 
  2033.       optional and is either "low" or "high" and refers to the priority of the 
  2034.       save thread. 
  2035.  
  2036.       Note:  that if you wish to indicate a save priority that you have to also 
  2037.       specify a color depth.  Examples would be 
  2038.  
  2039.             call JVWSaveFile("c:\image\jane.jpg", "jpeg", "gray", "low)
  2040.             or
  2041.             call JVWSaveFile("c:\image\jane.bmp", "os2")
  2042.             but
  2043.             call JVWSaveFile("c:\image\tarzan.x11", "x11", "high")
  2044.             is invalid because a color depth was not specified.
  2045.  
  2046.    o  JVWSay  This is mostly useful as a debugging command to verify that the 
  2047.       arguments you are passing are correct.  Any number of arguments are used, 
  2048.       each one is displayed in a message box.  It can be used to tell the user 
  2049.       that the script is complete, or for some other signal.  An example 
  2050.  
  2051.             call JVWSay("hello")
  2052.  
  2053.    o  JVWSetOption  This is used to set a variety of options.  The number and 
  2054.       type of arguments will vary depending on the option that is being set. 
  2055.       The possible arguments are: 
  2056.         -  "fixed_window" This will have two arguments.  The first will be the 
  2057.            string "fixed_window" while the second will also be a string and be 
  2058.            either "on" or "off".  Using these arguments will dictate whether a 
  2059.            new image load will cause display resizing.  An example is 
  2060.  
  2061.                       call JVWSetOptions("fixed_window", "on")
  2062.  
  2063.         -  "jpeg_quantize" This will have two arguments, both strings.  The 
  2064.            first will be "jpeg_quantize" while the second will be either 
  2065.            "quick" or "slow".  This will set jpeg quantizing to use either the 
  2066.            quick method or the 2 pass regular (slow) method.  An example is 
  2067.  
  2068.                       call JVWSetOptions("jpeg_quantize", "quick")
  2069.  
  2070.         -  "quantize" This will have two or three arguments, both strings.  The 
  2071.            first is "quantize" while the second will be one of "quick", "slow", 
  2072.            "compromise", "gray" or "error".  If the second argurment is "error" 
  2073.            then a third argument is required and it is either "on" or "off". 
  2074.            The first four options refer to how quantizing (reducing an image 
  2075.            from 24 bit to 8 bit) takes place.  They are analogous to the 
  2076.            methods that can be selected with the regular options dialog.  The 
  2077.            "error" argument refers to error diffusion which can be set on or 
  2078.            off.  Two examples 
  2079.  
  2080.                       call JVWSetOptions("quantize", "slow")
  2081.                       or
  2082.                       call JVWSetOptions("quantize", "error", "on")
  2083.  
  2084.    o  JVWSetSelectionMethod  Is used to choose the type of selection method 
  2085.       (cropping method).  One argument is required and is one of "rectangle", 
  2086.       "ellipse", or "freehand".  An example 
  2087.  
  2088.             call JVWSetSelectionMethod("freehand")
  2089.  
  2090.    o  JVWSizeWindow  This command is used to resize and/or move the display 
  2091.       window.  The number of arguments can vary.  The arguments are: 
  2092.         -  "move" This will require three additional arguments, one string and 
  2093.            two integers.  The string will be either "relative" or "absolute". 
  2094.            This dictates whether the move will be to an absolute position on 
  2095.            the screen or relative to the current position.  The last two 
  2096.            arguments, both integers, are the new position.  The horizontal 
  2097.            value is first and the vertical value last.  An example is 
  2098.  
  2099.                       call JVWSizeWindow("move", "relative", 40, 50)
  2100.  
  2101.            This would cause the current window to move over 40 pixels and up 
  2102.            50. 
  2103.         -  "size"  Follows a similar format to "move".  This will resize the 
  2104.            display window (just the display window, not the actual image data). 
  2105.            It requires three additional arguments, one string and two integers. 
  2106.            The string will be either "relative" or "absolute".  This dictates 
  2107.            whether the size change is to absolute values or relative to current 
  2108.            values. The third and fourth arguments are the width and height 
  2109.            changes. An example is 
  2110.  
  2111.                       call JVWSizeWindow("size", "absolute", 100, 200)
  2112.            This would change the window's size to 100 pixels wide and 200 
  2113.            pixels high. 
  2114.         -  "invisible" is used to change the visibility state of the window to 
  2115.            hidden.  No other arguments are used with it.  An example is 
  2116.  
  2117.                       call JVWSizeWindow("invisible")
  2118.  
  2119.         -  "visible" is used to change the visibility to state to visible.  No 
  2120.            other arguments are used with it.  An example is 
  2121.  
  2122.                       call JVWSizeWindow("visible")
  2123.  
  2124.  
  2125. ΓòÉΓòÉΓòÉ 6. Copyright ΓòÉΓòÉΓòÉ
  2126.  
  2127. Crunch Products makes NO WARRANTY or representation, either expressed or 
  2128. implied, with respect to JView, its quality, accuracy, merchantability, or 
  2129. fitness for a particular purpose.  This software is provided "AS IS", and you, 
  2130. its user, assume the entire risk as to its quality and accuracy. 
  2131.  
  2132. This software is copyright (C) 1992, 1993, 1994, 1995, 1996 V. Joseph Burkley, 
  2133. Crunch Products. All Rights Reserved except as specified below. 
  2134.  
  2135. (1) Permission for use of this software is granted only if the user accepts 
  2136. full responsibility for any undesirable consequences; Crunch Products accepts 
  2137. NO LIABILITY for damages of any kind. 
  2138.  
  2139. (2) Permission is NOT granted for the use of the authors' names or company name 
  2140. in advertising or publicity relating to this software or products derived from 
  2141. it.  Such permission may be granted on a case by case basis, contact Crunch 
  2142. Products for further information.